I have a navigation controller-based app. I want to change the title of the back button for the root view controller. I have tried the following code in the ViewDidLoad method of the rootview controller, but no success:
self.navigationItem.backBarButtonItem.title = @ "Back";
Any ideas?
The back button is either:
- The previous view controller
- The name of the back view of the previous view controller
If you are setting back buttons for the navigation item of the current view controller, Do not set buttons that are visible in the scene. You are actually setting up a back button, which you will use it from other view controllers.
Comments
Post a Comment