Skip to content

Instantly share code, notes, and snippets.

@rhysforyou
Created March 7, 2011 08:15
Show Gist options
  • Select an option

  • Save rhysforyou/858215 to your computer and use it in GitHub Desktop.

Select an option

Save rhysforyou/858215 to your computer and use it in GitHub Desktop.
@interface RootViewController : UITableViewController {
IBOutlet UIToolbar *toolBar;
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
// Tell navigationController that we want to show it's toolbar
[self.navigationController setToolbarHidden:NO];
// Now set it's toolbar items to the ones set in our interface file
[self setToolbarItems:toolBar.items];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment