IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x15bd67f0> while a prese
来源:互联网 发布:seo有哪些优化 编辑:程序博客网 时间:2024/04/30 07:57
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];
}
没有效果的情况下说明:您的当前视图在主线程还没有加载出来,所以是释放不了当前视图的,您可能需要使用如下代码
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self dismissViewControllerAnimated:NO 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?
- 程序员分类(转)
- Oracle MapViewer11g安装与部署
- JAVA连接数据库编程 JDBC
- Android读写文件
- 微信支付 JAVA实现
- IOS:Warning: Attempt to dismiss from view controller <xxxxxxxxxController: 0x15bd67f0> while a prese
- Unity C# 规范
- 黑马程序员--学习C语言数组
- lua运行环境搭建:
- iOS- xib(nib) 的重用(在有些情况下有利于加快项目功能的实现)
- xml.etree.ElementTree — The ElementTree XML API
- 团队管理及个人管理:
- JDBC的应用,一次代码抄袭行为的收获。(内容包含:Class.forName(),Statement,ResultSet ,DatabaseMetaData )等部份知识点)
- ubuntu14上安装opengrok