Created
February 15, 2015 09:29
-
-
Save goldcoast/84e1fe8ccee56636b05d to your computer and use it in GitHub Desktop.
setting title from within YourViewController:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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