【问题处理】Application tried to present modally an active controller
来源:互联网 发布:淘宝微淘动态怎么看 编辑:程序博客网 时间:2024/05/29 07:32
问题:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller <TabbarViewController: 0x1765dbe0>.'
解决方法:
判断controller是不是有presentedViewController,没有的话才可以present
if ([UIApplication sharedApplication].delegate.window.rootViewController.presentedViewController == nil) { [[UIApplication sharedApplication].delegate.window.rootViewController presentViewController:self.gesturePasswordController animated:YES completion:^{ }];}
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
- mySQL 创建新用户的方法
- Android 中的缓存机制与实现
- sql 中Top、Limit、rownum 使用
- git查看某个文件的修改历史
- 【机器学习-斯坦福】学习笔记2 - 监督学习应用与梯度下降
- 【问题处理】Application tried to present modally an active controller
- ViewPager+Fragment实现Tab主界面
- 分区小记
- 解读微笑曲线
- Vim使用感受
- Ubuntu java 环境变量
- Hive优化以及参数配置
- 设计模式之适配器模式
- 8天入门wpf—— 第七天 画刷