Set The Text Of A Back Button On A UINavigationBar

To set the text of a back button on a UINavigationBar you can set it like this for you iPhone app:

UIBarButtonItem *backButton = [[UIBarButtonItem alloc] 
                                initWithTitle: @"Back Button Text" 
                                style: UIBarButtonItemStyleBordered
                                target: nil action: nil];

[self.navigationItem setBackBarButtonItem: backButton];
[backButton release];


Further information

Posted in Uncategorized Tagged with: , ,