简体   繁体   English

XCODE:iPhone 12 的尺寸将如何影响约束和故事板?

[英]XCODE: How will the size of iPhone 12 affect constraints and storyboard?

I haven't updated Xcode since the iPhone 12 was released.自从 iPhone 12 发布以来,我还没有更新过 Xcode。

I am wondering if there is a new update in which the iPhone 12 is now the main storyboard interface phone, and it's different in size from the iPhone 11?我想知道是否有新的更新,其中iPhone 12现在是主情节提要界面手机,并且与iPhone 11的尺寸不同?

I want to release a small app that I just finished development on, but do I need to update and adjust for new constraints for a different size phone (ie iPhone 12)?我想发布一个我刚刚完成开发的小应用程序,但我是否需要更新和调整不同尺寸手机(即 iPhone 12)的新限制? If so, what happens to my already created storyboard on the iPhone 11 model?如果是这样,我在 iPhone 11 型号上已经创建的故事板会发生什么? Does it stay or do I have to remodel or what?它会留下还是我必须改造或什么? Any help on how this will work with Xcode and constraints and whatnot is much appreciated.任何关于这将如何与 Xcode 和约束一起工作的帮助都非常感谢。

You probably won't have to change much as the sizes are quite similar.您可能不必更改太多,因为尺寸非常相似。 The storyboard should automatically resize based on what iPhone you are building for.故事板应根据您正在构建的 iPhone 自动调整大小。

The iPhone 12 Pro Max is only just a bit bigger than the iPhone 11 Pro Max, meaning there shouldn't be much to change there. iPhone 12 Pro Max 只比 iPhone 11 Pro Max 大一点,这意味着那里应该没有太多变化。 Also, The iPhone 12 Pro's size is just in between the iPhone X and iPhone 11.此外,iPhone 12 Pro 的尺寸介于 iPhone X 和 iPhone 11 之间。

You can see the below diagram for more information:您可以查看下图了解更多信息:

iphone尺寸图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM