nested push animation can result in corrupted navigation bar问题解决
来源:互联网 发布:网络连接不稳定 编辑:程序博客网 时间:2024/06/05 14:51
当接受到推送通知时,需要要求跳转到指定的页面。我们登录成功后只有一个viewcontroller,并且为导航视图。所以可以,使用 popToRootViewControllerAnimated 先跳转到根视图,然后在从根视图push到其他视图。
的时候会出现多出一个navigation bar,但这个bar并不是你想要的那样。是平白无故多出一个,但是在你打印堆栈的时候你发现堆栈中进出栈并没有错。还有一种情况,那就是控制台打印出如下的错误信息:
这个理论上是没有问题。但是在实际操作中,页面在跳转到你理想的界面以后,你再使用
[self.navigationController popViewControllerAnimated:YES];
的时候会出现多出一个navigation bar,但这个bar并不是你想要的那样。是平白无故多出一个,但是在你打印堆栈的时候你发现堆栈中进出栈并没有错。还有一种情况,那就是控制台打印出如下的错误信息:
nested push animation can result in corrupted navigation barFinishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.Unbalanced calls to begin/end appearance transitions for .
导致这两种情况的原因那就可能是因为,pop和push的操作太连贯,会造成navgation的动画还没执行完毕,就开始执行下一个了。
解决方案:
[self.navigationController popToRootViewControllerAnimated:YES]; // 这句话的YES,改为NO
- nested push animation can result in corrupted navigation bar问题解决
- nested push animation can result in corrupted navigation bar
- nested push animation can result in corrupted navigation bar
- nested push animation can result in corrupted navigation bar
- nested push animation can result in corrupted navigation bar ,titleview重叠
- [IOS问题]nested push animation can result in corrupted navigation bar
- UINavigationController出现nested push animation can result in corrupted navigation bar的错误提示
- iOS 导航栏错误 nested push animation can result in corrupted navigation bar
- IOS nested push animation can result in corrupted navigation bar . Unbalanced calls to begin/end
- 【iphone】返回崩溃:nested pop animation can result in corrupted navigation bar nested pop animation can re
- 【iphone】返回崩溃:nested pop animation can result in corrupted navigation bar nested pop animation can re
- 【iOS】返回崩溃:nested pop animation can result in corrupted navigation bar nested pop animation can re
- 返回上一级出现nested pop animation can result in corrupted navigation bar
- Customizing Navigation Bar and Status Bar in iOS 7
- Customizing Navigation Bar and Status Bar in iOS 7
- Customizing Navigation Bar and Status Bar in iOS 7
- Customizing Navigation Bar and Status Bar in iOS 7 .
- Customizing Navigation Bar and Status Bar in iOS 7
- processing 学习第一天笔记
- 高性能 Windows Socket 组件 HP-Socket v3.0.2 正式发布
- 算法练习之二叉树
- 1.3 基本调优策略和手段
- JDBC性能小贴
- nested push animation can result in corrupted navigation bar问题解决
- 2.1 善用设计模式
- loadView和viewDidLoad,即view的生命周期浅析
- processing 学习第二天笔记
- dex2jar和JD-GUI 反编译
- nyoj128 前缀式求值(栈---递归---数据结构)
- 汇编指令
- CSRF 攻击的应对之道
- processing第三天学习笔记