【iOS】返回崩溃:nested pop animation can result in corrupted navigation bar nested pop animation can re
来源:互联网 发布:金融建模需要会编程吗 编辑:程序博客网 时间:2024/05/29 19:59
nested pop animation can result in corrupted navigation bar
nested pop animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
【情况一】
出现此问题的原因是在A界面弹出B界面完成后,又掉A界面POP出栈,这必然导致以上问题。如下,在弹出personalController后面,又在后面调用了[self.navigationController popViewControllerAnimated:YES];将自己弹出!解决方法,还用说吗?{删除最后一行代码,要弹出此界面,自然有自己的返回按钮来处理},至少在B界面未POP以前,A界面是无论如何也不能将自己POP去消毁!
NSString*memberId = [dictionary objectForKey:@"PlayerNo"];
PersonalInfoViewController*personalController = [[PersonalInfoViewController alloc] init];
[personalController.navigationItems etHidesBackButton:YES];
[personalController setMemberId:memberId];
[self.navigationController pushViewController:personalController animated:YES];
[personalController release];
[self.navigationController popViewControllerAnimated:YES];
【情况二】
nested push animation can result in corrupted navigation bar 嵌套的navigation动画会造成 navigation bar 错误, 具体表现为上一层的titleview 和这一层重叠, navigationbaritem 维持上一层的左按钮, 右按钮 、、、系统警告提示nested push animation can result in corrupted navigation bar
从头到尾分析了整个项目的代码, 最后确认问题根源——自定义UITabbarController引发的血案
项目中使用了自定义的UITabbarController ,修改里面的tabbar视图, 在这个UITabbarController 中实现了viewWillAppear方法, 里面没有加super viewWillAppear , 结果导致了这一连串的问题,
整个软件里面,都会出现弹一次模态窗口,导航视图就会动画乱序,
导航视图前进后退过快, 导致导航栏嵌套, 一个上面覆盖另一个。
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- 【iOS】返回崩溃: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
- 【iphone】返回崩溃:nested pop animation can result in corrupted navigation bar nested pop animation can re
- 返回上一级出现nested pop 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
- [IOS问题]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
- nested push animation can result in corrupted navigation bar ,titleview重叠
- UINavigationController出现nested push animation can result in corrupted navigation bar的错误提示
- iOS pop返回时崩溃
- iOS--push/pop之Animation健谈
- Core Animation & Facebook's POP
- Activity 跳转动画 -- pop animation
- iOS 动画效果:Core Animation & Facebook's pop
- android源码修改内核配置不生效的解决办法
- VC与BCB库文件之间的转换问题
- JQuery学习笔记(一)
- runtime - 属性的动态挂载
- SVAC 2.0 解码库——ref_count参数(1)
- 【iOS】返回崩溃:nested pop animation can result in corrupted navigation bar nested pop animation can re
- App相关辅助工具类
- 控制符endl与换行符'\n'的区别
- c3p0参数解释
- 时间类型数据存储的效率问题
- mysql的rpm安装
- 图片的缓存机制
- Android开发中小技巧
- 数据库错误解决随笔