Skip to content

Instantly share code, notes, and snippets.

@goldcoast
Created February 15, 2015 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldcoast/84e1fe8ccee56636b05d to your computer and use it in GitHub Desktop.
Save goldcoast/84e1fe8ccee56636b05d to your computer and use it in GitHub Desktop.
setting title from within YourViewController:
//use other controller push to navigation controller
YourViewController *yourViewController = [[YourViewController alloc] init];
yourViewController.title = @"TestTitle";
[self.navigationController pushViewController:yourViewController animated:YES];
[yourViewController release];
// set current navigation title
self.navigationController.navigationBar.topItem.title = @"title 4 testing";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment