Make the back button say… back.
Monday 8 February 2010, 8:59AM
A lot of the time, you’re making an iPhone app and you realize that the back button ends up saying “Money spent shopping.” which is both ugly and space-consuming (leaving the title of the page pushed to the right).
Because of this, I have a handy-dandy little code snippet I use every single day:
UIBarButtonItem *backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@”Back”, @”Back”) style:UIBarButtonItemStyleBordered target:nil action:nil];
self.navigationItem.backBarButtonItem = backBarButtonItem;
[backBarButtonItem release];