AppDelegate警告 Initalizing 'AppDelegate * __strong'
来源:互联网 发布:java 线程锁活锁 死锁 编辑:程序博客网 时间:2024/05/25 08:15
使用ARC时,获取全局的AppDelegate会有上面的警告
下面这样写会有警告
AppDelegate *app = [UIApplicationsharedApplication].delegate;
修改为
AppDelegate *app =(AppDelegate*)[UIApplicationsharedApplication].delegate;
这样警告就没有了阅读全文
0 0
- AppDelegate警告 Initalizing 'AppDelegate * __strong'
- 警告:Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplication..
- Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplicatioinDele
- Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplicatioinDele
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- AppDelegate
- appdelegate
- AppDelegate
- AppDelegate
- python快速搭建http服务
- C语言第五课
- 我怕写程序
- 667. Beautiful Arrangement II
- is-a&has-a
- AppDelegate警告 Initalizing 'AppDelegate * __strong'
- SharePreferences源码分析(SharedPreferencesImpl)
- 避免使用终结方法
- Istio: Traffic Management for your Microservices Practices
- JDBC
- Zerynth使用-1
- rails 数据验证(rails guides学习笔记)
- C语言循环的测试
- Eclipse中的一些调试小技巧