Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
来源:互联网 发布:C#数组排序 编辑:程序博客网 时间:2024/05/14 22:50
有同学问了这个问题。
这个问题一般就是因为没有在头文件实现相应协议引起的。
Xcode会提示,但一般不会报错。容易被忽略,这里就说明下。
参考:http://stackoverflow.com/questions/10377705/how-to-solve-the-warning-sending-viewcontroller-const-strong-to-parameter
2 0
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'AppDelegate *const __strong' to parameter of incompatible type 'id<******Delegate>'
- Sending 'xxx *const __strong' to parameter of incompatible type 'id<aDelegate>'
- Sending 'ViewController' to Parameter of Incompatible Type 'id<xxxDelegate>'
- 警告解决办法sending 'viewcontroller *' to parameter of incompatible type 'id UMSocialUIDelegate
- Sending 'ShareView *const _strong' to parameter of incompatible type 'id<UIAlertViewDelegate>'
- Sending 'NSProgress *__strong *' to parameter of incompatible type 'void (^ _Nullable)(NSProgress *
- const 定义警告 Sending 'const NSString *__strong' to parameter of type 'NSString * _Nullable'...
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 'CIColor *'
- [cocos2d]Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 解决办法
- Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 'CIColor *'错误
- 报错原因:Incompatible pointer types sending 'UIImage *' to parameter of type 'NSString * _Nonnull'
- Assigning to ‘ d<xxxxDelegate>' from incompatible type ‘xxViewController *const __strong'
- 解决 sending 'const NSString *' to parameter of type 'NSString *' discards qualifiers
- IOS Assigning to 'id<Delegate>' from incompatible type...解决办法
- java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException 异常的处理
- LCD触摸屏中LCD屏幕坐标和触摸屏坐标的关系
- android用户界面之ScrollView教程实例汇总
- ZooKeeper客户端命令
- jquery easyui tree实现延迟
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- linux中Find命令的使用
- c语言练习题
- linux分区简介
- [技术分享] cocos2d-x v3.0.0发布说明
- Linux 系统性能评估
- A - Lake Counting解题报告
- 关于python中深拷贝与浅拷贝问题
- mysql 5.6 修改root 密码