IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x15bd67f0> while a prese
来源:互联网 发布:淘宝无线店铺装修 编辑:程序博客网 时间:2024/05/16 13:54
原文地址:http://blog.csdn.net/jiadabin/article/details/47108733
Warning: Attempt to dismiss from view controller <SetUpViewController: 0x15bd67f0> while a presentation or dismiss is in progress!,有需要的朋友可以参考下。
Ios:在你使用presentModalViewController加载过多的视图过程中,退出当前视图selfdismissViewControllerAnimated:YEScompletion:nil] ;或者 selfdismissViewControllerAnimated:NOcompletion:nil];使用如果遇到报这样的警告且返回不到上个视图,可以参考参考我下边的解决方案:2014-11-25 11:41:49.664 xxxx[4745:60b] Warning: Attempt to dismiss from view controller <xxxxxViewController: 0x13f6840e0> while a presentation or dismiss is in progress!
如果使用if (![self.presentedViewController isBeingDismissed]) {
[self dismissViewControllerAnimated:YES completion:nil];
}
没有效果的情况下说明:您的当前视图在主线程还没有加载出来,所以是释放不了当前视图的,您可能需要使用如下代码
这样做的好处是让主线程等待0.2秒再退出视图, 就可以退出了!
0 0
- IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x15bd67f0> while a prese
- IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x15bd67f0> while a prese
- IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x13f6840e0>
- Warning: Attempt to dismiss from view controller <LoginViewController: 0xbb9c0f0> while a presentat
- attempt to dismiss modal view controller
- iOS 跳转出现attempt to dismiss modal view controller whose view does not currently ……的解决方案
- iOS: Warning: Attempt to present <ModalViewController> on <ViewController>while a presentation is in
- iOS开发之bug:ios Warning: Attempt to present <a viewController: 0x10d0611b0> on <UITabBarController: 0
- Trying to dismiss the presentation controller while transitioning already
- Warning: Attempt to present A on B whose view is not in the window hierarchy!
- Warning: Attempt to present A on B whose view is not in the window hierarchy!
- Warning: Attempt to present A on B whose view is not in the window hierarchy!
- Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
- Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
- Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
- 解决java.lang.NullPointerException Attempt to read from field 'int android.view.View.mViewFlags' on a
- In an iOS 5 Storyboard, how do you push a new scene to the original view controller from a Popover?
- In an iOS 5 Storyboard, how do you push a new scene to the original view controller from a Popover?
- 数据结构与算法分析笔记与总结(java实现)--二叉树5:平衡二叉树判断练习题
- GOF设计模式-外观模式(Facade)
- 如何进入COMS
- 实习第三天
- 云知声语音语义识别,语音唤醒和语音合成简单工具类封装
- IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x15bd67f0> while a prese
- 洛谷 P1062 数列
- 二分法求临界值[非递归算法]
- C# 16进制与字符串、字节数组之间的转换
- Torry的困惑(基本型)
- Android5.0之NavigationView的使用
- NPN型输入(输出)和PNP型输入(输出)分别是什么意思?
- 关于Linux的进程和线程分析
- 【Codeforces 765 C. Table Tennis Game 2】+ 贪心