Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
2014-01-15 13:16
1756 查看
有同学问了这个问题。
这个问题一般就是因为没有在头文件实现相应协议引起的。
Xcode会提示,但一般不会报错。容易被忽略,这里就说明下。
参考:http://stackoverflow.com/questions/10377705/how-to-solve-the-warning-sending-viewcontroller-const-strong-to-parameter
这个问题一般就是因为没有在头文件实现相应协议引起的。
Xcode会提示,但一般不会报错。容易被忽略,这里就说明下。
参考:http://stackoverflow.com/questions/10377705/how-to-solve-the-warning-sending-viewcontroller-const-strong-to-parameter
相关文章推荐
- 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>'
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- Assigning to 'id<UITextViewDelegate>' from incompatible type 'HBComposeViewController *const __stron
- iOS调试——警告解决办法sending 'viewcontroller *' to parameter of incompatible type 'id UMSocialUIDelegate
- Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- Assigning to "id<CALayerDelegate> _Nullable" from incompatible type "ZXCapture *const __strong" 的警告提示信息
- 警告⚠️Assigning to 'id<LoginViewDelegate>' from incompatible type 'LoginViewController *__strong'
- Xcode编译警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'
- IOS Assigning to 'id<UITabBarControllerDelegate>' from incompatible type...
- Assigning to ‘ d<xxxxDelegate>' from incompatible type ‘xxViewController *const __strong'
- IOS Assigning to 'id<Delegate>' from incompatible type...解决办法<CALayerDelegate>
- Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplicatioinDele
- Initializing 'Object' *__strong' with an expression of incompatible type 'id <Object> _Nullable
- Assigning to 'AppDelegate *' from incompatible type 'id<UIApplicationDelegate>'
- const 定义警告 Sending 'const NSString *__strong' to parameter of type 'NSString * _Nullable'...
- Initializing 'AppDelegate *__strong' with an expression of incompatible type 'id<UIApplicationDelega