Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. changing the Navigation Bar controller text
  2. self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"New Title" style:UIBarButtonItemStyleBordered target:nil action:nil];
  3.        
  4. UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"New Title" style:UIBarButtonItemStylePlain target:nil action:nil];
  5. self.navigationItem.backBarButtonItem = backButton;
  6.        
  7. [[bar backItem] setTitle:@" New Title "];
  8.        
  9. self.navigationItem.backBarButtonItem.title=@"New Title";
  10.        
  11. self.navigationController.navigationBar.backItem.title=@"New Title";
  12.        
  13. [self.navigationItem.leftBarButtonItem setText:@"SomethingSomethingDarkside"]
  14.        
  15. UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"New Title" style:UIBarButtonItemStylePlain target:nil action:nil];
  16. self.navigationItem.leftBarButtonItem = backButton;