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.
Xcode Storyboard displaying the new iPhone 5 screen size?
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.
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
There's a size property in the attributes, so you can choose the pre iPhone5 size of 3.5
Update: It's now under Editor->Simulated Screen. It's combined with orientation (portrait vs. landscape).
yes in Xcode 6 this is the option and also simulated metrics in the Attributes inspector. –
Penis
Is there a shortcut for this? –
Hjerpe
You can switch between the Form Factors(IPhone 5 and the previous versions) by clicking on Editor->Apply Form Factor
Because Apple can't seem to stop messing with stuff, it's now Editor->Simulated Screen. –
Overdraft
© 2022 - 2024 — McMap. All rights reserved.