Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 UINavigationBar with iOS 6 style

I was developing an App for iOS 6 and this is one of my views.enter image description here

Now I've updated my iPhone to iOS 7 and this is the result:

enter image description here

Now all the views are behind the navigation bar because iOS 7' UIViewController's views starts at the top left edge of the screen and not under the UINavigationBar as iOS 6. Now the "email" field is behind the navigation bar. Is there a way to use the iOS 6 style?

Thanks

Marco

like image 424
Marco Manzoni Avatar asked Sep 11 '13 18:09

Marco Manzoni


1 Answers

STEP BY STEP WITH IMAGES

Upon reading this question I was experimenting as I had the exact same question. I then found the answer.

1) Make sure storyboard is on iOS 7

enter image description here

2.) Select the viewcontroller from the storyboard (In your case the Login Controller) enter image description here

3.) Make sure that 'Under Top Bars' is Deselected

enter image description here

like image 120
OnkaPlonka Avatar answered Oct 05 '22 04:10

OnkaPlonka