UINavigationController's back button disappears?

I notice something strange happens to one of my view controller: the back button disappears, yet it's possible to go back to previous view controller by tapping the top left corner (i.e where the button should reside).

In my entire file there's no line that set self.navigationItem.hidesBackButton to YES; also NSLog prints 0 as self.navigationItem.hidesBackButton's value in viewDidLoad.

This occurs in both the simulator and real device. Any ideas?


Oh dear. In the implementation of the previous view controller, I accidentally set self.title to @"", which causes this annoying bug.

Remove this line solves the problem.

I had a recursive navigation controller, and this also happened to me, I used this code to fix it:

self.navigationItem.leftItemsSupplementBackButton = true

Need Your Help

Create a new project with xcode 4.3.2 without a storyboard

iphone xcode storyboard

I am looking for a good tutorial that shows step-by-step how to do create a new project with xcode 4.3.2 without using the storyboard.

What is the best way to distribute my iOS app to customers?

ios iphone-developer-program in-house-distribution ios-enterprise

I have an iOS app which i want to distribute to my clients. I have almost 30 companies as my clients. Every company has their own webservice from where i get their data. Functionality and graphics ...