【发布时间】:2013-10-08 21:00:10
【问题描述】:
这是我使用 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)上测试时,它总是崩溃。
我应该注意最新操作系统的任何新内容吗?
【问题讨论】:
-
很可能是你的方法调用 [self cancelShoot];使您的应用崩溃,对其进行调试。
-
尝试评论第一行 ipc=nil 和 [self cancelshoot] 看看它还在崩溃吗?
-
cmets 的坦克,删除
ipc = nil;是正确的事情。我仍然不知道为什么会出现问题...
标签: iphone crash ios-simulator ios7 uiimagepickercontroller