【发布时间】:2016-06-17 05:32:11
【问题描述】:
当我尝试显示警报视图控制器时,我的应用程序崩溃了。
-(void)setupAlertCtrl{
self.alertCtrl=[UIAlertController alertControllerWithTitle:@"Select Image"
message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
}
- (IBAction)selectImagePressed {
**[self presentViewController:self.alertCtrl
animated:YES
completion:nil];//this funcanility is breaking**
}
例外:
libc++abi.dylib:以 NSException 类型的未捕获异常终止
【问题讨论】:
-
请分享您的崩溃日志。
-
check 'self' 是指一些视图?
标签: ios objective-c uialertcontroller presentviewcontroller