Xcode Storyboard displaying the new iPhone 5 screen size?
Asked Answered
C

4

25

I have the latest version of Xcode. In one of my projects I noticed that the views for the iPhone were the new iPhone 5 screen sizes. I like it but is there a way to switch back to the smaller screen size? Not everyone has the iPhone 5.

Cyndycynera answered 25/9, 2012 at 13:50 Comment(0)
C
56

Also, when your building your interface, you'll see a small icon that lets you quickly switch between 4" and 3.5" screens. It's the rectangular icon on the left. It toggles back and forth between phone sizes.

The icon on the left lets you switch display sizes

Crosscut answered 25/9, 2012 at 15:25 Comment(5)
Marrow - any idea if one person is on XCode 4.2, how to fix this issue? Actually in our team, people are using different versions of XCode and ios and in XCode 4.2, and it dont have this option. How to fix this?Fendley
You may not be able be able to do this. Not sure that Xcode 4.2 even knows about the iPhone 5.Crosscut
Yes, that icon switches between the two modes, but why does it not switch automatically when changing simulators? Doesn't that mean whatever mode you compile it at, it will be stuck at that size no matter what iPhone is being used?Pretext
@TimothySwan - This icon is there only to show you what your interface will look like in the two different sizes. Your interface is not "stuck" at this size. Your interface is both of these sizes.Crosscut
This option is nowhere to be found in Xcode 6, after introducing two new sizes. SPA's answer below will give all options though. To change all views at once, use William's answer.Twine
U
21

There's a size property in the attributes, so you can choose the pre iPhone5 size of 3.5

enter image description here

Unwary answered 25/9, 2012 at 15:10 Comment(0)
O
4

Update: It's now under Editor->Simulated Screen. It's combined with orientation (portrait vs. landscape).

Overdraft answered 20/9, 2014 at 22:47 Comment(2)
yes in Xcode 6 this is the option and also simulated metrics in the Attributes inspector.Penis
Is there a shortcut for this?Hjerpe
W
1

You can switch between the Form Factors(IPhone 5 and the previous versions) by clicking on Editor->Apply Form Factor

Whither answered 20/2, 2013 at 11:6 Comment(1)
Because Apple can't seem to stop messing with stuff, it's now Editor->Simulated Screen.Overdraft

© 2022 - 2024 — McMap. All rights reserved.