The following code will set the back button title of the current UINavigationItem:
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil];
[self.navigationItem setBackBarButtonItem:backButton];
[backButton release];
Updated to fix memory leak. (Thanks Sam!)
The target: and action: parameters are definitely ignored (replaced by the default back button behavior) and the style also seems to be ignored because the back button retains its pointed left side.
This next block of code looks like it should do the same thing but does not work:
self.navigationItem.backBarButtonItem.title = [NSString stringWithString:@"Back"];MAJOR CAVEAT: As pointed out in this thread, "the back button is 'owned' by the previous view on the stack." In other words, the setBackBarButtonItem method should be called on the view that the user is navigating away from, rather than the view above which this button is actually displayed.
UINavigationItem on Apple Developer Docs




shoaib on April 2nd, 2009 at 9:52 pm
George on April 15th, 2009 at 4:48 am
George on April 15th, 2009 at 4:56 am
Sam Soffes on July 13th, 2009 at 2:52 pm
Duncan Champney on January 8th, 2010 at 9:36 pm