##Back button'text in navigationbar ###Objective-C
Last active
October 13, 2015 17:28
-
-
Save kelp404/4231104 to your computer and use it in GitHub Desktop.
Change the text of the back button in navigationbar
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
UIViewController *controller = [[UIViewController alloc] initWithNibName:@"view" bundle:nil]; | |
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:@"back" style:UIBarButtonItemStyleBordered target:nil action:nil]; | |
[self.navigationItem setBackBarButtonItem:backItem]; | |
[self.navigationController pushViewController:controller animated:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment