Warning: Attempt to present * on * which is already presenting *
Warning: Attempt to present (要被presented的控制器) on (哪个控制器来presenting) which is already presenting (已经被presenting的控制器)
self: 是被presented出来的控制器,
self.presentingViewController: 看看是谁把self给presenting出来
RPLog(@"%@ - %@", self.presentingViewController, [UIApplication sharedApplication].keyWindow.rootViewController);
打印结果: <RPNavigationController: 0x789d0330> - <RPNavigationController: 0x789d0330>
结论: popover中的控制器, 其实是通过窗口的根控制器presenting出来的, 所以要想窗口的根控制器再presenting其他控制器,需要先dismiss掉原来presenting的控制器,
否则会出现如下错误:
Warning: Attempt to present <RPNavigationController: 0x790dad10> on <RPNavigationController: 0x78e76c70> which is already presenting <RPRegionViewController: 0x78f76700>
转载于:https://www.cnblogs.com/Rinpe/p/4882408.html
Warning: Attempt to present * on * which is already presenting *相关推荐
- Warning: Attempt to present on whose view is not in模态跳转问题
错误分析: controller A present controller B ,前提是A的view要存在,如果不存在,就会报这个错. 解决方法: 将原来的present语句由 viewDidLoa ...
- Attempt to present vc on vc which is already presenting vc/(null)
在给 tableViewCell 添加长按手势弹出一个 popViewController 的时候,遇到的这个变态问题: Warning: Attempt to present <UINavig ...
- Attempt to present UIImagePickerController: 0x1848de00 on UINavigationController: 0x17e6ed50 wh
Warning: Attempt to present <UIImagePickerController: 0x1848de00> on <UINavigationControll ...
- IOS:Warning: Attempt to dismiss from view controller xxxxxxxxxController: 0x15bd67f0 while a prese
Warning: Attempt to dismiss from view controller <SetUpViewController: 0x15bd67f0> while a pre ...
- IOS:Warning: Attempt to dismiss from view controller xxxxxxxxxController: 0x13f6840e0
Ios:在你使用 presentModalViewController加载过多的视图过程中,退出当前视图self dismissViewControllerAnimated:YES completio ...
- iOS 实现点击微信头像效果
来源:伯乐在线 - 小良 如有好文章投稿,请点击 → 这里了解详情 如需转载,发送「转载」二字查看说明 公司产品需要实现点击个人主页头像可以放大头像.缩放头像.保存头像效果(和点击微信个人头像类似), ...
- 实现点击微信头像实现放大头像、缩放头像、保存头像效果
实现点击个人主页头像可以放大头像.缩放头像.保存头像效果(和点击微信个人头像类似). 实现思路: 直接自定义 UIView(CYPhotoPreviewer),为了实现双击缩放,可以实现 UIScro ...
- 尝试在视图不在窗口层次结构中的UIViewController上呈现UIViewController
本文翻译自:Attempt to present UIViewController on UIViewController whose view is not in the window hierar ...
- IOS问题汇总:2015-1-14 xib连线问题
xib连线问题 Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[setValue:forUnd ...
- IOS开发基础知识--碎片8
1:用UIImageView作为背景,但直接把按钮或者UITextField放在上面无法相应事件. 解决办法:UIImageView默认的UserInteractionEnabled是NO,把它修改成 ...
最新文章
- mysql join union_MySQL中union和join语句使用区别的辨析教程
- 生命的脆弱——悼念朋友
- SetGet and MACRO
- 如何选择合适的损失函数,请看......
- Ubuntu下hadoop的安装与简单应用
- 使用FirefoxDriver时报错Make sure firefox is installed问题
- yii2-按需加载并管理CSS样式/JS脚本
- 杭电2031进制转换
- poj 1664 放苹果 DPDFS
- poj3273---Monthly Expense
- 【ArcGIS微课1000例】0008:ArcGIS中如何设置相对路径?(解决图层前红色的感叹号)
- 7-4 是否同一棵二叉搜索树 (25 分)
- dao.php,DAO.php · Dodd/Training Lab - Gitee.com
- 3、Django下载与简介
- js学习总结----js中常用的四种输出方式
- 读吴恩达算-EM算法笔记
- 项目maven依赖成功,但编译一直报错:引用项目的类路径找不到
- 国际品牌拧紧工具的优缺点
- java byte 文件大小_java byte文件大小
- Istio:Mixer功能架构与实践