경고보기 컨트롤러를 표시하려고 할 때 응용 프로그램이 충돌합니다.PresentViewController가 목표 c에서 작동하지 않습니다. 응용 프로그램이 충돌합니다
-(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의 캐치되지 않는 예외로 종료
충돌 로그를 공유하십시오. –
'self'가 일부보기를 나타 냅니까? – mkumar