Featured Apps

MyMemes

Create Your Own Memes
Add captions to the most popular meme images or your own photos

Sleepify

Music Alarm Clock
Simple, stylist and intuitive music alarm clock

Collaged

Create Photo Collages
Easily create photo collages to share with friends and family

iOS 7 - Change Title of back button

29 April 2014

To change the title of the back button on a UIViewController, you need to add the following code to the view controller that the back button will take you to.

So if you have ViewController1 that takes you to ViewController2, to change the back button title of ViewController2, add the following code to ViewController 1 in the ViewDidLoad method.

Objective-C
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] 
    initWithTitle:@"Notes" style:UIBarButtonItemStylePlain 
    target:nil action:nil];