Search code examples
iosuinavigationcontrollerbackuinavigationitem

UINavigationController Back button title always show "Back"


I am developing an IOS application. I am using navigation controller. If I push to next page then back button title not shown previous page title in IOS 7. Back button title always "Back" in IOS 7. I set all pages titles in viewWillAppear, viewDidload like below. But it is not working.

self.navigationItem.title=@"Previous Page Title";
self.title  = @"Previous Page Title";

What can I set back button title with previous page title in IOS 7

Thanx


Solution

  • If the title is large, back button shows back only.Try with short titles,like

    self.title = @"Test";
    

    if you want Long title , go for custom back button.