简体   繁体   English

什么是Interface Builder中的适应

[英]What is Adaptation in Interface Builder

In XCode Interface Builder there is a new view if you switch the Device to iPad, like this: 如果将设备切换到iPad,则在XCode Interface Builder中会有一个新视图,如下所示:

在此处输入图片说明

What is it the Adaptation good for? 适应有什么好处?

From iOS 10 on iPad you can use the split screen function, which displays two apps on your screen at the same time. 在iPad上的iOS 10中,您可以使用分屏功能,该功能可同时在屏幕上显示两个应用程序。 You can also adjust the ratio of the two. 您也可以调整两者的比例。 With these options you can simulate the changes in Interface Builder: 使用这些选项,您可以模拟Interface Builder中的更改:

在此处输入图片说明

The following figure ( source ) shows you what size-classes will be applied to your app (based on orientation and split screen size adjustments) 下图( )显示了将应用于您的应用的尺寸类别(基于方向和分屏尺寸调整) 在此处输入图片说明

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

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