Chilly Zhong Chilly Zhong - 1 year ago 96
Objective-C Question

How to hide 'Back' button on navigation bar on iPhone?

I added a navigation control to switch between views in my app. But some of the views shouldn't have 'Back' (the previous title) button. Any ideas about how to hide the back button?

Answer Source

Objective-C:
self.navigationItem.hidesBackButton = YES;

Swift:
self.navigationItem.hidesBackButton = true

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download