nested push animation can result in corrupted navigation bar

2014-07-05 17:11:20.594 SevenStars[2185:60b] nested push animation can result in corrupted navigation bar

2014-07-05 17:11:21.005 SevenStars[2185:60b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.

做tableview的点击delegate方法中进行界面的跳转,代码如下:

 case 4://度假卡绑定
        {
            MemberCardBindController * member = [[MemberCardBindController alloc]initWithNibName:@"MemberCardBindController" bundle:nil];
            member.titleName = @"度假卡绑定";
            [self.navigationController pushViewController:member animated:YES];
        }
            break;
        case 5://我的优惠券
        {
            MemberCouponslistController * coupon = [[MemberCouponslistController alloc]initWithNibName:@"MemberCouponslistController" bundle:nil];
            coupon.titleName = @"我的优惠券";
            [self.navigationController pushViewController:coupon animated:YES];

        }
            //break;
        case 6://收藏
        {
            ProductCollectionController * collection = [[ProductCollectionController alloc]initWithNibName:@"ProductCollectionController" bundle:nil];
            collection.titleName = @"我的收藏";
            [self.navigationController pushViewController:collection animated:YES];
        }

            break;

这样就会出现这样的错误,当你点击返回之后,一片空白。原因在于我case 5 的时候,没有跟break,郁闷啊,

nested push animation can result in corrupted navigation bar

时间: 2024-10-11 08:31:45

nested push animation can result in corrupted navigation bar的相关文章

UINavigationController出现nested push animation can result in corrupted navigation bar的错误提示

今天在测试过程中,出现了这样一个bug,分别有两种情景: (前提是:app是基于UINavigationController构建的) 1.从Controller-A中push进来B.在B中点击返回,返回的界面为黑色一片.再做返回操作就crash了. 如图1: 2.从Controller-A中push进入B,此时B中tableview出现错位现象(图2),tableview被navigationbar覆盖了一部分,在B中再push一个C进来.此时只显示了C的navigationbar,但下方的vi

nested pop animation can result in corrupted navigation bar

nested pop animation can result in corrupted navigation barFinishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. 我出现这个错误的情况,输入框输入状态下push到下个页面返回的时候会出错,4上测试

转:UINavigationBar返回上一级出现nested pop animation can result in corrupted navigation bar

[self.navigationController popViewControllerAnimated:NO]; 出现上面的错误是因为pop的时候要确保先让本页面加载完成,即如果在viewDidLoad中加载一个请求,想在成功的时候没有数据时直接pop回来时就会出现混叠不清的情况 解决办法:延迟执行pop后的push,或者push 后的pop,即使0.1s都行. 如:[self performSelector:@selector(pop) withObject:nilafterDelay:1]

Status bar and navigation bar appear over my view's bounds in iOS 7

转自:http://stackoverflow.com/questions/17074365/status-bar-and-navigation-bar-appear-over-my-views-bounds-in-ios-7 Question: I recently downloaded Xcode 5 DP to test my apps in iOS 7. The first thing I noticed and confirmed is that my view's bounds is

用swift实现navigation bar的完全透明 & navigation bar中button的字体大小调整

这几天在项目中遇到的关于navigation bar的一些小问题以及解决的方法记录一下吧: 1.  完全透明navigation bar 有时候我们想要navigation viewcontroller顶部的navigation bar变得完全透明,我们首先想到是从story board下手,但是尝试了半天,也不能达到完全透明的效果 选择这里的Translucent Navigation Bar只能让bar变成那种可以稀释背景色的毛玻璃的效果,那么究竟应该如何才能把整个navigation ba

配置navigation bar外观

/* 配置navigation bar外观开始 */ self.navigationBar.translucent = YES; self.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]; self.navigationBar.tintColor = [UIColor whiteCol

Android判断Navigation Bar 是否透明

设置Navigation Bar 透明 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); 或者Theme中添加  <item name="android:windowTranslucentNavigation">true</item> /** * Convenience function to set the flag bits as specified i

与Status Bar和Navigation Bar相关的一些东西

与StatusBar和NavigationBar相关的东西有两种,一是控制它们的显示与隐藏,二是控制它们的透明与否及背景. 在2.3及以前,StatusBar只能显示与隐藏,即全屏模式,通过WindowManager.LayoutParams.FLAG_FULLSCREEN来实现: getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); 并可通过以下Flag使Activity的布局可以使用整个屏幕,状态栏会显示到Acti

Navigation Bar 和 Status Bar 的设置

概念:所谓的UINavigationItem就可以理解为Navigation Bar中的内容,通过编辑UINavigationItem, 我们可以使得在Navigation Bar中显示想要的东西,比如设置标题.添加按钮 navigationItem和UINaviagationController平级, 1. navigationBar自己有很多属性:比如 barStyle .背景 backgroundColor .frame属性(可以获得宽高这些信息) 2. 可以通过setBackground