Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8802019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:58:52+00:00 2026-06-14T00:58:52+00:00

I have a navigation based app with 2 controllers: vA and vB. vA is

  • 0

I have a navigation based app with 2 controllers: vA and vB.

vA is the navigation controller’s root view controller and it is a full screen controller, so when this controller is being shown, the navigation bar is hidden.

Then I push vB using

[self.navigationController pushViewController:vB animated:YES];

On vB’s viewDidLoad I have this:

self.navigationController.navigationBarHidden = NO;
// then I have navigation buttons defined here

The animation of vB entering the screen from the right happens this way:

  1. the navigationBar suddenly appears on vA
  2. vB slides from the right and fills the screen.

when I pop vB out, this is what happens

  1. vB slides to the left showing vA behind.
  2. at this time, we see vA with the navigationBar visible on top. Remembers vA should have no navigation bar visible. Then, that navigation vanishes and vA resizes to full screen.

this animation has no grace, is terrible, clunky and wrong.

What I want is this: the navigation slides in and out together with vB.

how do I do that?

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:58:53+00:00Added an answer on June 14, 2026 at 12:58 am

    Try the following:

    - (void)viewWillAppear:(BOOL)animated
    {
        [self.navigationController setNavigationBarHidden:YES animated:animated];
        [super viewWillAppear:animated];
    }
    
    - (void)viewDidDisappear:(BOOL)animated {
        [self.navigationController setNavigationBarHidden:NO animated:animated];
        [super viewDidDisappear:animated];
    }
    // OR viewWillDisappear as mentioned by @RubberDuck
    

    Instead of hiding navigation bar in viewDidLoad, implement viewWillAppear and viewDidDisappear

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a navigation-based app and say my root controller A causes a viewController
I have a storyboard based app with a navigation controller as the initial view
I have a navigation based app. The root view is a list of items.
I have an navigation-based app with three view controllers. The first has categories of
I have an iPhone app that is based on a navigation controller. I have
I have a view based app (not navigation or tab based...) My main view
I have a simple iPhone app based on a navigation controller. There are two
I have a tab bar + navigation based app and I'd like to launch
I am building a Calendar app. I have Navigation based app template. Navigation controller
I have a navigation based app. The first view (rootcontroller) starts with three large

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.