xcode编译Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
来源:互联网 发布:淘宝关键词采集器 编辑:程序博客网 时间:2024/05/17 05:11
本文原始地址:xcode编译Warning:
编译xcode的时候报如下警告:
错误代码
Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
分析
由于呈现模态视图xx类时,yy视图的view还没有被加载到window中。
造成这个原因可能是在yy的viewdidload中呈现xx模态视图。
解决
把presentModalViewController放到viewDidAppear或者viewWillAppear中。
- xcode编译Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
- Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
- iOS - 报错 Warning: Attempt to present <xx: xx> on <xx: xx> whose view is not in the window hierarchy!
- 对Warning: Attempt to present on 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 on whose view is not in the window hierarchy!的解决方案
- 对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案
- Warning: Attempt to present * on * 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!
- 对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案
- 对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案
- Warning: Attempt to present ControllerA and ControllerB whose view is not in the window hierarchy!
- Attempt to present on whose view is not in the window hierarchy!
- Attempt to present on whose view is not in the window hierarchy!
- iOS 简单的实现手机号正误的判断(Warning: Attempt to present... whose view is not in the window hierarchy!
- 处理iOS报错: Warning “attempt to present ViewController whose view is not in the window hierarchy”
- Attempt to present VC whose view is not in the window hierarchy 解决
- Time类
- 关于 C# 自增运算符(operator ++)的重载
- 学习效果要求和作业要求
- weblogic
- Android应用程序的生命周期
- xcode编译Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
- MyEclipse上安装SVN插件
- 重新组织数据之六 :Duplicate Observed Data(复制「被监视数据」)
- sql server 2008 不允许保存更改,您所做的更改要求删除并重新创建以下表 的解决办法
- Java乔晓松-spring自动装配Bean的4种方式
- AJAX实现动态树型结构
- 黑马程序员--java内省与代理
- 似然函数
- 用Eclipse来统计代码行数