1
votes

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.

2
Are you using a UINavigationController or did you add a navigation bar to your view yourself?Felix Lamouroux
I added the navigation bar my self. @FelixLamSophia_xoox
if ios 7 then present modal view controller,Then navigation controller as view controllerArun

2 Answers

1
votes

Did you try to add:

self.edgesForExtendedLayout = UIRectEdgeNone;

in the viewDidLoad method?

0
votes

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.