One Quickie


Changing title of Back Button (UIViewController->General)
Sometimes the default title of the UIViewController "Back" button isn't quite right. To change it to something else, do this:
    UIBarButtonItem *backButton =
        [[UIBarButtonItem alloc] initWithTitle: @"Back"
                                 style: UIBarButtonItemStyleBordered
                                 target: nil
                                 action: nil];
    self.navigationItem.backBarButtonItem = backButton;
    [backButton release];
The catch is you need to do it in the parent controller before pushing the subcontroller. You can stick this into the -init and change it once



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com