关于模态窗口错误 Application tried to present modally an active controller
2013-11-05 13:33
302 查看
先判断presentedViewController为空时,再presentModalViewController
if (rootviewController.presentedViewController ==
nil)
{
[rootviewController
presentModalViewController:imagePicker
animated:YES];
}
if (rootviewController.presentedViewController ==
nil)
{
[rootviewController
presentModalViewController:imagePicker
animated:YES];
}
相关文章推荐
- 模态窗口错误 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
- 关于 Unable to add window -- token null is not for an application 错误的解决方法
- 关于使用模态窗口presentViewController跳转黑屏的解决
- Application tried to present modal view controller on itself
- Application tried to present a nil modal view controller on target “Current View Controller”解决方案
- Unable to add window -- token null is not for an application错误的解决方法
- 关于Unity3D的错误:NullReferenceException: Object reference not set to an instance of an object 的解答
- 多级模态窗口的解散消退问题 presentModalViewController
- Android酱油笔记之关于AlertDialog的Unable to add window token null is not for an application解决办法
- 在windows直接运行Qt编译出来的可执行程序出现了如下提示错误: this application has requested the runtime to terminate it an unu
- 在创建一个Dialog时,发生的错误: Unable to add window -- token null is not for an application
- AlertDialog显示错误 Unable to add window token null is not for an application
- 关于错误An exception has occurred,use %tb to see the full traceback,SystemExit
- AlertDialog显示错误 Unable to add window token null is not for an application
- Android开发之关于“Unable to add window - token null is not for an application ”的异常
- application windows are expected to have a root view controller错误