Presenting view contro…
来源:互联网 发布:web服务器搭建域名 编辑:程序博客网 时间:2024/05/19 13:55
模态跳转的时候有时会会出现这个警告
Presenting view controllerson detached view controllers is discouraged .
原因是present出来的模态窗口,禁止再使用present
只要把self直接模态跳转页面改成从根控制器跳转即可
例如:
[self
即可
引申一下如何找根控制器:
方法一:就是通过上面的方法,先找到appdelegate然后获取window属性
这种方法除了找根控制器还能找appdelegate类里的定义的任何属性,如:
方法二:直接通过keyWindow来找根控制器,更直接
- Presenting view contro…
- Presenting view contro…
- View Controller 生命周期的…
- View Controller 生命周期的…
- ive lateral view…
- View, surfaceView, GLS…
- ExecutionLog2 View -&n…
- IOS UI view button 自定义颜色………
- Attribute view add column
- Create Attribute View
- HANA Create View
- 集线器 交换机 路由器 网桥 …
- 使用BBED修改SCN …
- Hive安装 …
- android o…
- android …
- [转] 彼尔…
- “constructors not allowed …
- iOS云存储:CloudKit
- iOS云存储:CloudKit
- 语言之争
- tabBar隐藏的问题
- 如何实现动态cell区的设置
- Presenting view contro…
- 高通平台下Sensors相关调试经验详解
- Presenting view contro…
- Oracle EBS 基本业务流程
- OC对象类型
- 支付宝支付流程详解
- 微信支付
- Android 插件化 动态升级
- rails升级tips