取消按钮是错过?!我怎样才能解决这个问题?非常感谢你。iOS7 UIImagePickerController取消按钮消失
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary])
{
if(buttonIndex == 1)
{
self.ctr = [[UIImagePickerController alloc] init];
self.ctr.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
self.ctr.delegate = self;
self.ctr.allowsEditing = YES;
[self presentModalViewController:self.ctr animated:YES];
}
}
尝试子类UIImagePickerController然后在你的子类 - (void)viewDidLoad中,添加一个取消按钮。 –
@Basheer_CAD谢谢。 – jxdwinter
您是否找到解决方案?我也有同样的问题,并尝试了很多方法。但是,它不能被显示。 – mmjuns