Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone get back button text

Sorry for the another newbie question.

I tried to get the back button text value in viewDidLoad but it always displays null when I navigate through controllers.

NSLog(@"-----------> %@ ", self.navigationItem.backBarButtonItem.title);

How to get the back button text value?

like image 713
tom_987 Avatar asked Apr 16 '26 07:04

tom_987


1 Answers

Use self.navigationController.navigationBar.backItem.title :)!

like image 135
cutsoy Avatar answered Apr 18 '26 23:04

cutsoy



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!