关于应用在Xcode8上运行时的报错:Assigning to 'id<XXDelegate>' from incompatible type...
来源:互联网 发布:淘宝网购酸枣面 编辑:程序博客网 时间:2024/06/06 18:05
如上图这样的报错基本上是由两种情况造成的:
1、没有遵守协议(基本上都是这种情况造成的)
解决办法:遵守这个协议
2、strong 类型不兼容
解决办法:将 strong 改为 weak
注意:有时 Xcode 不能及时清楚警告和错误,需要手动clean一下( Product ->Clean)
0 0
- 关于应用在Xcode8上运行时的报错:Assigning to 'id<XXDelegate>' from incompatible type...
- assigning to id from incompatible type
- Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"
- Assigning to 'id<UITextViewDelegate>' from incompatible type 'HBComposeViewController *const __stron
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- IOS Assigning to 'id<UITabBarControllerDelegate>' from incompatible type...
- Assigning to 'AppDelegate *' from incompatible type 'id<UIApplicationDelegate>'
- IOS Assigning to ‘id<UITextView>’ from incompatible type 解决方法
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- IOS Assigning to 'id<Delegate>' from incompatible type...解决办法
- Assigning to ‘APPDelegate’ from incompatible type ‘id<UIApplicationDelegate> _Nullable’
- IOS Assigning to 'id<Delegate>' from incompatible type...解决办法<CALayerDelegate>
- gf-complete报错error: incompatible types when assigning to type '__m128i' from type 'int'
- Assigning to 'id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>' from incompatible
- Assigning to ‘id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>’ from incompatible
- Assigning to ‘id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>’ from incompatible
- Xcode编译警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'
- iOS常见问题之 IOS Assigning to 'id<XXXDelegate>' from incompatible type...
- 【codevs 1008】选数
- sqlplus常用命令(持续更新...)
- 如何利用HTML5快速开发一款小游戏
- android插件化 small rules
- 第十周项目2-二叉树遍历的递归算法
- 关于应用在Xcode8上运行时的报错:Assigning to 'id<XXDelegate>' from incompatible type...
- Java - (== +优先级问题)
- 第十一周项目2-用二叉树求解代数表达式
- apache tez
- 深入浅出mybatis中原始dao的开发和mapper代理开发
- Swift3.0语言教程比较、判断字符串
- VR、AR、MR和CR分别是什么
- laravel debugbar扩展包配置
- LVS+KeepAlived搭建双机热备负载均衡