Initializing 'AppDelegate *__strong' with an expression of incompatible type 'id<UIApplicationDelega
来源:互联网 发布:淘宝官方网站注册免费 编辑:程序博客网 时间:2024/05/18 22:13
在写出了除了Home键外退出程序的点击事件时,代码 如下:
AppDelegate *delegate =[UIApplicationsharedApplication].delegate;
报Initializing 'AppDelegate *__strong' with an expression of incompatible type 'id<UIApplicationDelegate> _Nullable'的黄色警告,此时只需要在前面强制转换一下就好 如下代码:
(AppDelegate *)[UIApplicationsharedApplication].delegate
阅读全文
0 0
- Initializing 'AppDelegate *__strong' with an expression of incompatible type 'id<UIApplicationDelega
- Initializing 'AppDelegate *__strong' with an expression of incompatible type
- Initializing 'Object' *__strong' with an expression of incompatible type 'id <Object> _Nullable
- Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplicatioinDele
- 警告:Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplication..
- Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplicatioinDele
- Sending 'AppDelegate *const __strong' to parameter of incompatible type 'id<******Delegate>'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'xxx *const __strong' to parameter of incompatible type 'id<aDelegate>'
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- Assigning to 'AppDelegate *' from incompatible type 'id<UIApplicationDelegate>'
- Assigning to ‘APPDelegate’ from incompatible type ‘id<UIApplicationDelegate> _Nullable’
- 警告⚠️Assigning to 'id<LoginViewDelegate>' from incompatible type 'LoginViewController *__strong'
- Sending 'NSProgress *__strong *' to parameter of incompatible type 'void (^ _Nullable)(NSProgress *
- Sending 'ViewController' to Parameter of Incompatible Type 'id<xxxDelegate>'
- Property type 'id<xxxxTabBarDelegate>' is incompatible with type 'id<UITabBarDelegate>' inherited fr
- select 标签重置
- HTML Button自动刷新页面的问题
- spingmvc+mybitis所需jar包1
- uva11374迪杰斯特拉最短路径+打印
- iOS APP转让
- Initializing 'AppDelegate *__strong' with an expression of incompatible type 'id<UIApplicationDelega
- 实验 缓存,缓存穿透
- java中Integer数值比较
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 167
- 欢迎使用CSDN-markdown编辑器
- angularjs表达式
- ArcGIS Android Runtime100.1.0
- web前端开发中你必须要了解掌握的DOM节点方法!
- IPO聘请了Symantec公司的前首席财务官