Sophia_xoox
Sophia_xoox

Reputation: 955

ios 7 navigation bar too small

I am trying to update my iPhone app to iOS7.

I am having major issues with the navigation bar. I would like it to have the new navigation bar.

As you can see from my image it has squashed the title to the top near the status bar.

I dont want to remove the status bar.

Surely it cant be that difficult to change.

I also noticed on some apps its changed automatically and on other apps it hasn't?

My navigation bar which is squashed.

Upvotes: 1

Views: 1231

Answers (2)

Felix Lamouroux
Felix Lamouroux

Reputation: 7484

You should try and do it the correct way by adding your view controller to a UINavigationController and use its UINavigationBar. This will handle most layout issues for you and will also be backwards compatible. If you post the code where you bring your ViewController on screen, we will gladly help to wrap it in a navigation controller.

Upvotes: 0

The dude
The dude

Reputation: 7924

Did you try to add:

self.edgesForExtendedLayout = UIRectEdgeNone;

in the viewDidLoad method?

Upvotes: 1

Related Questions