Show Navigation Bar: AFTER transition

Discussion in 'iOS Programming' started by Fontano, Oct 15, 2008.

  1. Fontano macrumors member

    Joined:
    Jun 27, 2008
    #1
    In my first screen, I have my Navigation Bar hidden.

    After the next screen transitions on (via the standard push, slide from the right). I want to show the Navigation Bar again.

    If I set the Hidden Property to NO, with animation.
    It does show it again, but it does it BEFORE the animation is complete of the screen transition.

    How could I go about calling the Hidden Property (to no), after the transition is complete?

    NSTimer? or is there an event already built in.
     
  2. dean1012 macrumors regular

    Joined:
    Jul 10, 2008
    #2
    hmm

    I'm not sure I understand your situation correctly, but I believe the solution is simple.

    Implement viewDidAppear for the second view. Inside viewDidAppear, show the navigation bar.

    If you are pushing the second view to the hidden navigation controller, you should be able to access it in the second view via [self navigationController].

    Also note that in order for viewDidAppear to be called, it must have been received by the navigation controller.
     
  3. Fontano thread starter macrumors member

    Joined:
    Jun 27, 2008
    #3
    Thank you, that was exactly the solution I was looking for.

    I was making the Navigation Bar, unhidden in the viewDidLoad functions.
     

Share This Page