view raw
Nikita Nikita - 10 months ago 64
iOS Question

Navigation bar in iOS

I have such ViewControllers enter image description here

After registration user is moved to RevealViewController

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
SWRevealViewController *revealViewController = (SWRevealViewController *)[storyboard instantiateViewControllerWithIdentifier:@"revealViewControllerID"];
[self.navigationController pushViewController:revealViewController animated:YES];

and then goes to Main View Controller with own top bar, but it is not shown, because there appears navigation bar with 'back button' (see image). How can i remove this navigation bar to see my top bar?

I found a lot of SO pages with similar question, but no one solution has been able to remove navigation bar.

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