Navigation Item not appearing on View Controller
The problem in my case was that the Navigation controller wasn't the "initial View Controller"
So I had to do this
You have to change your Segue Style by doing this:
- Select the Segue in your Storyboard;
- Go to the Attributes inspector (on the right pane tabs);
- Change the Style attribute to Push.
It will make the screen roll from right to left and the Navigation bar will appear sliding. With Modal, the screen come from bottom to the top of the screen and it will not let the Navigation bar appears.
The Navigation item did not show up because of the "style" of my segue.
The segue that moved the scene from the master view controller to the settings view controller was set to 'modal'. It has to be set to 'push'. This is done from the storyboard on the utilities pane
You have verified that your navigation controller listed in the viewDidLoad method is not nil?
Assuming that you do correctly have a self.navigationItem
that is non-nil, it appears that you are incorrectly setting your self.navigationItem.leftBarButtonItem
to an editButtonItem
, instead try removing this all together!
If removing it does not solve the problem try:
self.navigationItem.leftBarButtonItem = self.navigationItem.backBarButtonItem;