If you’re using a UINavigationController to control the navigation in your iPhone app, you’ll find that the “Back” button on your navigation stack can sometimes get very long – particularly if you have long titles for the views you push on to your UINavigationController stack.

That’s where changing the text on the ‘Back’ button can come in handy.  The following code will change the text on the ‘Back’ button to show the text ‘Back’ instead of a shortened version of the previous view’s title:

 self.navigationItem.backBarButtonItem =
      [[UIBarButtonItem alloc] initWithTitle:@"Back"
               style: UIBarButtonItemStyleBordered
               target:nil
               action:nil];