【发布时间】:2013-09-22 07:51:27
【问题描述】:
取消按钮不见了?!我怎样才能解决这个问题?非常感谢。
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 谢谢。
-
您找到解决方案了吗?我也有同样的问题,尝试了很多方法。但是,它仍然无法显示。
标签: uiimagepickercontroller ios7