这是我如何使用 IPC:
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];
}];
它在 iOS 6 的 3GS 上运行良好,在 iOS 7 模拟器上也没有问题。在 iOS 7 设备(iPod 5 gen、iPhone 4、iPhone 5)上进行测试时,它总是崩溃。
最新操作系统有什么我应该注意的新内容吗?
最佳答案
“ipc”是指针吗?考虑到您设置 sourceType 的方式,它看起来并非如此..
关于iphone - UIImagePickerController 在模拟器上工作,在设备上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19137569/