Attempt to present <TestViewController2: 0x7fd7f8d10f30> on <ViewController: 0x7fd7f8c054c0> whose view is not in the window hierarchy!
2018-06-15 00:15
561 查看
当 storyboard里面的 按钮 即连接了 类文件里面的点击方法 又 连接了 storyboard里 另一个 控制器的 modal
就会出现类似Attempt to present <TestViewController2: 0x7fd7f8d10f30> on <ViewController: 0x7fd7f8c054c0> whose view is not in the window hierarchy!的错误 ,意思是说系统尝试present一个没有在window的层级结构内 存在view的控制器
需要去掉一个方法,不要对一个按钮通过不同形式重复add不同的方法。这样会冲突。
相关文章推荐
- iOS - 报错 Warning: Attempt to present <xx: xx> on <xx: xx> whose view is not in the window hierarchy!
- 处理iOS报错: Warning “attempt to present ViewController whose view is not in the window hierarchy”
- Warning: Attempt to present BBBViewController on AAAViewController whose view is not in the window hierarchy!
- Warning: Attempt to present ControllerA and ControllerB whose view is not in the window hierarchy!
- 对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案
- swift一次 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!
- iOS 简单的实现手机号正误的判断(Warning: Attempt to present... whose view is not in the window hierarchy!
- swift一次 Attempt to present on whose view is not in the window hierarchy的解决方法
- Attempt to present on whose view is not in the window hierarchy!
- Attempt to present VC 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 present XX on 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 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 XXX on XXX whose view is not in the window hierarchy!的解决方案
- 对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案
- Attempt to present on whose view is not in the window hierarchy!