Application tried to present modally an active controller
来源:互联网 发布:百亿彩票计划软件 编辑:程序博客网 时间:2024/05/14 22:12
控制器模态到另一个控制器发生了错误。报错是Application 试图模态到一个活跃的控制器中。
第一次模态的时候不会出现问题,第二次发生了问题。
也就是说明了第二次模态的视图是活跃状态,没有销毁。
查找代码,发现了问题,第一次模态之后,控制器不是通过dismiss回到之前的控制器,而是通过其他的方式。
这时候就需要我们在第一次模态之后,跳到之前页面的时候,把当前视图控制器销毁,置nil。
然后我们再模态到这个视图就没有问题了。
0 0
- Application tried to present modally an active controller
- 【问题处理】Application tried to present modally an active controller
- Application tried to present modally an active controller
- 关于模态窗口错误 Application tried to present modally an active controller
- 模态窗口错误 Application tried to present modally an active controller
- 模态出来报错:Application tried to present modally an active controller
- Application tried to push a nil view controller on target
- Application tried to push a nil view controller on target <UINavigationControlle
- Present ViewController Modally
- Present ViewController Modally
- Present ViewController Modally
- Present ViewController Modally
- Present ViewController Modally
- Present ViewController Modally
- Present ViewController Modally
- Present modally 返回主界面
- path to an application
- 正确使用模态 Present ViewController Modally
- LeetCode Week 1
- 关于ORA-04043: object dba_tablespaces does not exist
- org.apache.struts2.views.jsp.ui.FormTag
- MIT,GPL,LGPL,BSD等开源许可的区别
- WebRTC 的 Android 2 Android 实现
- Application tried to present modally an active controller
- 实习笔记
- py-Faster-RCNN在windows下的pycaffe编译
- 大数据陷阱:需要读懂的10个小故事
- 编译镜像(映像).img文件
- LeetCode 171 Excel Sheet Column Number
- AssetBundle机制相关资料收集
- 前端Sublime Text
- 如何通过AWS助理级解决方案架构师认证