Hide NavigationBar for one ViewController in Storyboard

If you want to keep things in the Storyboard than edit the User Defined Attributes and set navigationController.navigationBarHidden as a Boolean checked.


In your mainViewController, you can do following:

- (void)viewWillAppear:(BOOL)animated
{
    [self.navigationController setNavigationBarHidden:YES animated:animated];
    [super viewWillAppear:animated];
}

You might want to show the Navigation bar when hiding this ViewController, for that do the following:

- (void)viewDidDisappear: (BOOL)animated
{
    [self.navigationController setNavigationBarHidden:NO animated:animated];
    [super viewDidDisappear:animated];
}