I have 8 view controllers embedded into 1 navigation controller. I'd like to hide the navigation bar (keeping status bar) on my first view controller. When I've tried to do this this, the navigation bar disappears on all my view controllers.
Asked
Active
Viewed 578 times
0
-
It would be helpful to tell how did you do that, add some code, etc. – Marcal May 01 '14 at 17:16
1 Answers
2
Try this in the first view controller:
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES animated:animated];
}
- (void)viewWillDisappear:(BOOL)animated {
[self.navigationController setNavigationBarHidden:NO animated:animated];
[super viewWillDisappear:animated];
}

Vlad Papko
- 13,184
- 4
- 41
- 57
-
This does work - however all my objects on storyboard have been moved up the screen at runtime. – lbudge May 01 '14 at 17:24
-