1
我使用未UINavigationCtronller從到的UIViewController甲一個的UIViewController B. 導航論的UIViewController B的視圖,我輕按一鍵和呼叫UIImagePicker駁回圖像選擇器導致崩潰
UIImagePickerController *ipc = [[UIImagePickerController alloc] init];
ipc.sourceType = UIImagePickerControllerSourceTypeCamera;
ipc.delegate = self;
ipc.allowsEditing = NO;
[self presentModalViewController:ipc animated:YES];
如果我點擊'取消」 UIImagePicker的按鈕,我叫
-(void)imagePickerControllerDidCancel:(UIImagePickerController*)picker{
[picker dismissModalViewControllerAnimated:YES];
}
UI將返回的UIViewController一個相當優於B
如果我點擊任何地方,應用程序崩潰。
歡迎而不是
[picker dismissModalViewControllerAnimated:YES];
你能告訴我們你的整個ViewControllerB文件...? – 2012-03-26 11:26:59