Xcode Storyboard displaying the new iPhone 5 scree

2019-02-05 15:55发布

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.

4条回答
看我几分像从前
2楼-- · 2019-02-05 16:31

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

查看更多
你好瞎i
3楼-- · 2019-02-05 16:31

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

enter image description here

查看更多
冷血范
4楼-- · 2019-02-05 16:34

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

查看更多
唯我独甜
5楼-- · 2019-02-05 16:35

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

查看更多
登录 后发表回答