1

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.

Popeye
  • 11,839
  • 9
  • 58
  • 91
Sophia_xoox
  • 947
  • 4
  • 12
  • 26

2 Answers2

1

Did you try to add:

self.edgesForExtendedLayout = UIRectEdgeNone;

in the viewDidLoad method?

The dude
  • 7,896
  • 1
  • 25
  • 50
  • I just tried it, it didn't make it any larger :\ thank you though, – Sophia_xoox Oct 15 '13 at 11:22
  • Sorry to hear that. Lots of people with similar issues, though. Have you tried using deltas? http://stackoverflow.com/questions/18775874/ios-7-status-bar-overlaps-the-view – The dude Oct 15 '13 at 11:48
0

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.

Felix Lamouroux
  • 7,414
  • 29
  • 46