在下面方法中获取发送按钮的 Tag/Name/ID
-(void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info
{
// I Want to get the sender button reference here
}
根据tag取控件,使用
id control = [self.view viewWithTag:yourTag];
1.创建按钮的时候,给到按钮一个tag值,button.tag=111;
2.在要得到按钮对象的地方获取按钮 UIButton *bu=(UIButton *)[self.view viewWithTag:111];