0
這是我如何用我的IPC:模擬器上工作的UIImagePickerController,崩潰的設備
ipc = nil; // reset (camera may be running)
ipc = [[UIImagePickerController alloc] init];
[ipc setDelegate:self];
ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:ipc animated:YES completion:^(void){
[self cancelShoot];
}];
它運作良好,在3GS的iOS 6,我也有在iOS模擬器7沒有任何問題。在iOS 7設備(iPod 5,iPhone 4,iPhone 5)上測試時,它總是崩潰。
我應該知道最新的操作系統有什麼新東西嗎?
很可能你的方法調用[self cancelShoot];崩潰你的應用程序,調試到它。 – Engnyl
嘗試評論第一行ipc = nil和[self cancelshoot]並看它是否還在崩潰? – iAhmed
聽起來像一個dup http://stackoverflow.com/questions/18939537/uiimagepickercontroller-crash-only-on-ios-7-ipad – Chrix