I have referred to quite a few threads (How do I change the title of the "back" button on a Navigation Bar , NavigationController UINavigationBar Back Button and few others) on customizing text in back button to show desired string. However, they do not use storyboard. So many of them are not applicable.
In order to give you a background, I have created my views (view1
and view2
) through storyboard and I would like to use a back button on view2
to navigate to view1
. How can I do this using IB?
Alternatively, I also tried setting self.navigationItem.backBarButtonItem.title
to @"Custom text";
, but this does not work as well.
Can somebody please suggest how can I change the text of Back
button on view2
? Thanks!