tip:参考 http://stackoverflow.com/questions/9861538/assigning-to-iddelegate-from-incompatible-type-viewcontroller-const-strong 我的问题的解决:UIGestureRecognizerDelegate忘记添加协议 @interface:XXXX()<UIGestureRecognizerDelegate>…
该警告提示信息,是说,设置了代理对象,但是并没有继承它的代理.下图中,可以看出,警告信息提示我们没有继承“CALayerDelegate”的代理. 解决方法,很简单,(在 @interface 文件中继承它的代理即可)如下: 重新编译一下就可以了.…
编译报警告 可能是 自定义分类使用协议时出现与父类协议的冲突 解决方法如下:    …
出现 Assigning to 'id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>' from incompatible type 'ManageMessageViewController' 警告 当调用UIImagePickerController时,在进行委托定义是提示Assigning to 'id<UINavigationControllerDelegate,UIImagePickerContro…
在使用代理的时候, BViewController *BVC = [[BViewController alloc]init]; self.delegate = BVC; 出现这样的警告Assigning to 'id<XXXDelegate>' from incompatible type 'BViewController *__strong' 解决方案: #import "BViewController.h" @interface BViewController ()&l…
iOS报错:Property type 'id' is incompatible with type 'id _Nullable' inherited from 'UITabBar' 如图: 可能原因:由于自定义tabBar,没有继承系统UITabBarDelegate造成的 解决办法: 第一步: 第二步:…
原因: 你自己写了代理,设置了   delegate = self.但是self 没有遵守这个协议 只需要遵守这个协议就可以消除警告.…
实例变量在类方法中被使用 原因:静态方法访问了非静态变量属性(.h中声明的那些属性),就是类方法访问了成员变量…
http://docs.opencv.org/doc/tutorials/ios/hello/hello.html  openCV 2.4.3 iOS background_segm.hpp 'list' file not found 2013-12-06 13:51:20 分类: iOS平台 今天从opencv官网下了一个ios版的opencv的framkwork,按照官方的导入项目后,编译时出现错误在background_segm.hpp里出现“ 'list' file not found”…
I have added a UIImagePickerController to a UIViewController. I have assigned the UIImagePickerControllerDelegate to that UIViewController. When I try to do myPicker.delegate = self; Xcode gifts me with this message: warning: assigning to id from inc…