The easy option is to simply set the back button title yourself to @"Back" with the caveat that it will always be English, no matter what the device's configured language is. The better solution is to temporarily remove the title in the previous UIViewController and re-set it when returning.
This way iOS will automatically set the title to "Back" or to the equivalent for whatever language is configured for the device.-(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.title = @"My title"; } -(void)viewWillDisappear:(BOOL)animated { self.title = nil; [super viewWillDisappear:animated]; }
I've just launched a new side project of mine:
Bugfender - A modern remote logger tailor-made for mobile development
It's currently free and you can sign up here: https://app.bugfender.com/signup
Any kind of feedback is more than appreciated :-)
No comments:
Post a Comment