Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize default back button in UINavigationView ios7

I am using Navigation View Controller in storyboard to creates different views linked together by segue link. Therefore, all the back button are automatically created. I have tried many ways to customize that back button with other text, or just no text but still cannot.

Here are the methods I tried,

self.navigationItem.backBarButtonItem.title = @"abc";

or

self.navigationController.navigationItem.backBarButtonItem.title = @"abc";

or

self.navigationItem.title = @"abc";

Please help me this one, thank you a lot :)

like image 465
Brian Lin Avatar asked Dec 02 '25 21:12

Brian Lin


1 Answers

You can edit the back button's title in storyboards directly. Select the appropriate ViewController that's been imbedded in a NavigationController and then:

enter image description here

like image 128
mmackh Avatar answered Dec 05 '25 09:12

mmackh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!