UINavigationController “back button” custom text?

From this link:

self.navigationItem.backBarButtonItem =
   [[UIBarButtonItem alloc] initWithTitle:@"Custom Title"
            style:UIBarButtonItemStylePlain
           target:nil
           action:nil];

As Tyler said in the comments:

don’t do this in the visible view controller, but in the view
controller that you’d see if you hit the back button

Leave a Comment