Xcode 4.5 MainStoryboard for iphone 4/4s - iphone

I just upgraded to Xcode 4.5 and noticed that my apps do not appear correctly in the MainStoryboard. The MainStoryboard seem to have increased in height. I suspect it has something to do with the new iPhone 5. How can I create new apps with the with the MainStoryboard set to the height for the iPhone 4 and 4S?

For the view controller(s) on your storyboard, select the view controller properties panel and set the simulated-metrics Size property to Retina 3.5 Full Screen.

Related

iPhone 4" view controller in Xcode 6

I've recently downloaded Xcode 6(official from apple) but when I create a new project, wether I select iPhone or iPad for the device, I get only iPad-sized view controller in my storyboard. How do I fix that? Thanks

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.

iOS 7 UINavigationBar with iOS 6 style

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;

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