I have an iPhone app based on a UINavigationController with a UIToolbar at the bottom with various buttons in it that I created through Interface Builder. When I use [navigationController pushViewController:animated:] , my new view slides into place as expected, but then all the buttons disappear from the toolbar - the toolbar itself remains visible, it is just completely empty.
How to make buttons stay in place?
Here's a bit where I respond to the user by clicking one of the toolbar buttons, which then shows a new view:
- (IBAction)clickSettings:(id)sender { NSLog(@"Clicked on 'Settings' button"); SettingsViewController *settingsViewController = [[SettingsViewController alloc] initWithNibName:@"Settings" bundle:nil]; [navigationController pushViewController:settingsViewController animated:YES]; }
source share