Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView Navigation Bar "Flickers" on Animation
    primarykey
    data
    text
    <p>I have a UIViewController, a "switcher" that will basically just rotate a view from one to another.</p> <p>It all works great, except that the view that I am transitioning to is a UIViewController which holds a UITableViewController. For some reason, when the animation "flips", the navigation bar is invisible, and once the animation completes the navigation bar just appears.</p> <p>It really doesn't look good and I was wondering if anyone knew why I might be seeing this and how I could fix it?</p> <p>Thanks,</p> <p>--d</p> <p>EDIT: Adding some code by request!</p> <p>Switcher viewDidLoad method - Currently Initializing both of the ViewControllers because I thought it may help</p> <pre><code>[super viewDidLoad]; LogoView *logoController = [[LogoView alloc] init]; self.logoView = logoController; [self.view insertSubview:logoView.view atIndex:0]; [logoController release]; MainController *vController = [[MainController alloc] init]; self.controller = vController; [vController release]; switchTimer = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(switchViews) userInfo:nil repeats:NO]; </code></pre> <p>Switcher switchViews method</p> <pre><code>[UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:.5]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; if (self.controller.view.superview == nil) { [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES]; [controller viewWillAppear:YES]; [logoView viewWillDisappear:YES]; [logoView.view removeFromSuperview]; [self.view insertSubview:controller.view atIndex:0]; [logoView viewDidDisappear:YES]; [controller viewDidAppear:YES]; } [UIView commitAnimations]; </code></pre> <p>MainController viewDidLoad method</p> <pre><code>CGRect frame = CGRectMake(0, 0, 320, 410); FirstLevelController *controller = [[FirstLevelController alloc] init]; navController = [[UINavigationController alloc] initWithRootViewController:controller]; navController.view.frame = frame; navController.navigationBar.tintColor = [UIColor blackColor]; [controller release]; [self.view addSubview:navController.view]; </code></pre> <p>Inside the FirstLevelController I just add the items to the table view... I've tried adding a navController.title = @"Home", but I am not even seeing the black navbar without text... it's just a big empty space.</p> <p>Help is muchly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload