IOS Assigning to 'id<UITabBarControllerDelegate>' from incompatible type...
2015-05-11 08:17
1636 查看
提示把错误的类型赋值给UITabBarControllerDelegate,
处理方法:
把头文件修改,加上<UIWebViewDelegate>
@interface ViewController : UITabBarController<UITabBarControllerDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) UITabBarController *tabBarController; @end
相关文章推荐
- IOS Assigning to 'id<Delegate>' from incompatible type...解决办法<CALayerDelegate>
- Assigning to 'id<UITextViewDelegate>' from incompatible type 'HBComposeViewController *const __stron
- iOS常见问题之 IOS Assigning to 'id<XXXDelegate>' from incompatible type...
- Assigning to "id<CALayerDelegate> _Nullable" from incompatible type "ZXCapture *const __strong" 的警告提示信息
- Assigning to 'AppDelegate *' from incompatible type 'id<UIApplicationDelegate>'
- Assigning to 'id<QMapViewDelegate>" from incompatible type "view control * const_strong"
- 关于应用在Xcode8上运行时的报错:Assigning to 'id<XXDelegate>' from incompatible type...
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- Sending 'ViewController' to Parameter of Incompatible Type 'id<xxxDelegate>'
- 警告⚠️Assigning to 'id<LoginViewDelegate>' from incompatible type 'LoginViewController *__strong'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- iOS调试——警告解决办法sending 'viewcontroller *' to parameter of incompatible type 'id UMSocialUIDelegate
- Assigning to ‘id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>’ from incompatible
- Sending 'xxx *const __strong' to parameter of incompatible type 'id<aDelegate>'
- Incompatible pointer types assigning to 'id<>' from 'Class'
- Sending 'AppDelegate *const __strong' to parameter of incompatible type 'id<******Delegate>'
- Assigning to ‘ d<xxxxDelegate>' from incompatible type ‘xxViewController *const __strong'
- Assigning to ‘APPDelegate’ from incompatible type ‘id<UIApplicationDelegate> _Nullable’