When your application opens up, the UITableViewController
doesn't show a Back
button because there is nothing to go back to. That's the Initial View Controller.
As for the second UIViewController
that pushes on top of the previous UITableViewController
- if you don't want the Back
button in that - use a Modal
transfer and not a Push
transfer.
Apple's Navigation Controller
simply functions like that. It works like a stack. One UIViewController
gets pushed on the current one.
However, if you still want a Navigation Bar
on top of the Modal
segue UIViewController
you can manually add it in the Interface Builder
:
And then you can add a UIBarButton
to the Navigation Bar
.
But if you are still adamant on simply hiding the Back
button, then use this method :
Put this in the viewDidLoad
method of your UIViewController
class's implementation :
[self.viewController setHidesBackButton:YES animated:NO];