Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"
2014-11-30 16:27
543 查看
使用腾讯地图sdk,出现警告:
Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"
在viewcontroller.m文件中
将
@interface
ViewController ()
改为
@interface
ViewController ()<QMapViewDelegate>
警告Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"就会消失。
Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"
在viewcontroller.m文件中
将
@interface
ViewController ()
改为
@interface
ViewController ()<QMapViewDelegate>
警告Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"就会消失。
相关文章推荐
- Assigning to "id<CALayerDelegate> _Nullable" from incompatible type "ZXCapture *const __strong" 的警告提示信息
- Assigning to 'id<UITextViewDelegate>' from incompatible type 'HBComposeViewController *const __stron
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- 关于应用在Xcode8上运行时的报错:Assigning to 'id<XXDelegate>' from incompatible type...
- Sending 'AppDelegate *const __strong' to parameter of incompatible type 'id<******Delegate>'
- IOS Assigning to 'id<UITabBarControllerDelegate>' from incompatible type...
- Xcode编译警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'
- 警告⚠️Assigning to 'id<LoginViewDelegate>' from incompatible type 'LoginViewController *__strong'
- Sending 'xxx *const __strong' to parameter of incompatible type 'id<aDelegate>'
- IOS Assigning to 'id<Delegate>' from incompatible type...解决办法<CALayerDelegate>
- Assigning to 'AppDelegate *' from incompatible type 'id<UIApplicationDelegate>'
- iOS常见问题之 IOS Assigning to 'id<XXXDelegate>' from incompatible type...
- Assigning to ‘ d<xxxxDelegate>' from incompatible type ‘xxViewController *const __strong'
- Sending 'ViewController' to Parameter of Incompatible Type 'id<xxxDelegate>'
- Incompatible pointer types assigning to 'id<>' from 'Class'
- Assigning to ‘APPDelegate’ from incompatible type ‘id<UIApplicationDelegate> _Nullable’
- Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplicatioinDele