iOS 7 UINavigationBar with iOS 6 style - iphone

I was developing an App for iOS 6 and this is one of my views.
Now I've updated my iPhone to iOS 7 and this is the result:
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

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
2.) Select the viewcontroller from the storyboard (In your case the Login Controller)
3.) Make sure that 'Under Top Bars' is Deselected

You need to turn off translucent for the navigation bar and that should adjust the iOS 7 constraints to be the bottom of the navigation bar again.
They have completely removed the old style for navigation bars in iOS 7. You could set the navigation bar to be an image, which could utilize the look from iOS 6, but I think it would be safer to just go with the new iOS 7 default appearance.

I had a similar problem and I fixed it by writing following code in the views' viewWillAppear method:
self.edgesForExtendedLayout = UIRectEdgeNone;

Related

adjust custom Navigation bar in xcode 4.6 for ios 7

All App is working fine for ios 7 except the Navigation bar
is there any way to adjust it for ios 7 in xcode 4.6
i dont want to build this from xcode 5 because it creates too many other issues
Navigation bar issue is the content start from the y=0 which hides in the navigation bar.originally it should start next from the navigation bar
In iOS7 , frame starts below the status bar , so y=0 means it will be under the status bar.
To counter this, you should put y=20.
You can use "Show the size inspector" in interface builder (xCode 5 only, but doesn't require code at all). Where you can specify delta for any View that you have, so it will look like you want in both iOS6 and iOS7. Note that xCode builds interface for iOS7 without delta's, it applies delta to iOS6, iOS6 etc.

Variation in iOS 6 & iOS 7

Newbie here learning programming. I created a table and a detail view. Once I click a row, it will direct to the detail view which shows detail info of that row. I also maintain a navigation bar on top. This all works fine.
However, once I click into the detail view. The Behavior of iOS6 and 7 is different. In 6, it seems like the view is placed nicely below the navigation bar. But in 7, the view is like placed right under the bar.
What is wrong?
Try adding this to your view:
if ([self respondsToSelector:#selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;

Bottom button not showing in iOS Simulator

I am developing an app for iOS in which i took new ViewController
In that ViewController i dragged two UIButtons
Here is the image of .xib file
:
but when i run this project in my simulator i am unable to see my bottom button, you can see here in my simulator,
:
Where i am doing mistake ? i am not using autolayout because my deployment target is iOS 4.3
Thanks in advance.
if we create the navigationbar and tabbar programmatically then occupies a space in our viewcontroller so if we need to set our viewcontroller from .xib properly then we must have to left the space of navigation and tabbar by selectin those from .xib so that we can have exact space left for our other stuff i'm glad that it helped you. you're welcome. :)
It seems that your trouble caused by tab bar, that you create from code. I assume, you will see your button in case of simple comment line with tab bar creation. As this button is hidden, you can change it's y position or change size of your view in xib file.
I have observed such problems when we are using different sizes of .xib and iPhone simulator
i mean to say if u are using Ratina 4 for .xib .. make sure that u r also using iPhone simulator of Ratina 4 and the frame of TabBar Controller should b (0,0,320,568)
And in the case of Ratina 3.5 it should be (0,0,320,480)

storyboard specific for iphone 4 when designing

So I have been designing my app in storyboard for a few hours and realized upon testing that the storyboard windows are the size for the iphone 5. How do I make it so that they are only iphone 4 views?
There's an icon at the bottom if the storyboard that looks like a long screen. Click it and it toggles the height

Interface builder iOS 5 compability trouble

I have unknown before problem with IB.
I'm creating navigation bar in my IB, but if y of it equals 20 it looks good at the iOS 4, but on the iOS 5 - not.
Screenshots.
IB
iOS 5
iOS 4.3.3
Seems, that the view in iOS 5 does not have a Status Bar enabled. Enable a Status Bar in the view and the problem will be solved!
Why are you setting the y value of the navigation bar to 20? Users expect to see the nav bar at the very top. Having a space between the top between the navigation bar is jarring.
If you set the y to 0 then it should be flush with the top across iOS 4.3 and 5.0
In the project-Info.plist add Status bar is initially hidden = YES
But the view's Y still set 20 , not 0