【发布时间】:2014-12-13 03:17:09
【问题描述】:
我的应用程序中有一个 ImagePickerController。
效果很好,但是在ipc.delegate = self;旁边出现错误信息:
分配给 'ID' 来自不兼容的类型'ViewController *const__strong'
该应用运行良好,因此我忽略了错误消息,但我想我需要知道原因。为什么会出现错误信息?
ipc = [[UIImagePickerController alloc]init];
ipc.modalPresentationStyle = UIModalPresentationCurrentContext;
ipc.delegate = self;
ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[ipc setAllowsEditing:NO];
[self presentViewController:ipc animated:NO completion:nil];
【问题讨论】:
标签: ios xcode delegates uiimagepickercontroller incompatibletypeerror