Navigation bar works fine on Ios 8, not shown on Ios 7.1

I am building an app with the latest xcode 6 and Ios 8 SDK.

I have this simple ViewController where I am setting a navigation item from the storyboard with a title and a right button, as you can see in the image:

enter image description here

This ViewController is clicked by HomeViewController.

I used auto layout.

Now what happens is that on Ios 8 everything works fine and when from home I click on the button, the view controller is inserted correctly, as you can see in the image:

enter image description here

But when I do the same action on Ios 7.1 I only see this:

enter image description here

No navigation displayed, no title, no button.

I made a connection to HomeViewController and "Step1ViewController" from storyboad. Am I missing something?

Thanks in advance.

+3


source to share


1 answer


As Giuseppe suggested, you may forget to add

super.viewDidLoad()

      

or objc



[super viewDidLoad];

      

in the viewDidLoad method. This worked for me.

0


source







All Articles