在拍摄照片后,iOS 8上的NSXPCDecoder导致了遇到崩溃的问题

时间:2015-06-20 02:56:11

标签: ios uiimagepickercontroller

知道这次崩溃是什么意思吗?在我的iOS应用程序中,我使用ImagePickerController来启动摄像头。在我拍了几张照片后,它崩溃说: -

[NSXPCDecoder didHideZoomSlider:]:无法识别的选择器发送到实例

以下是我正在使用的代码

    UIImagePickerController *imagePickerController = [[UIImagePickerController alloc]
                                                      init];
#if TARGET_IPHONE_SIMULATOR
    imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
#else
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
#endif
    imagePickerController.editing = YES;
    imagePickerController.delegate = (id)self;
    [self presentViewController:imagePickerController animated:YES completion:nil];

0 个答案:

没有答案