Xcode Storyboard displaying the new iPhone 5 screen size?

白昼怎懂夜的黑 提交于 2019-12-18 12:46:46

问题


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.


回答1:


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.




回答2:


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




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/12584376/xcode-storyboard-displaying-the-new-iphone-5-screen-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!