[英]set different position and constraints for different Size classes
I am little bit confused in size classes. 我对尺码课程有些困惑。 I have created a project in this I want the different position for
wCompact hAny
and wCompact hRegular
. 我已经在其中创建了一个项目,我希望
wCompact hAny
和wCompact hRegular
位置不同。
I designed the UI using storyboard and set different position for these size classes. 我使用情节提要设计了UI,并为这些大小类设置了不同的位置。 Each Size classes have different constraints installed but when I run this It will not not given me desired output.I have attached some images please see this and give me answer where I am doing wrong or miss.
每个Size类都安装了不同的约束,但是当我运行它时,它不会给我想要的输出。我已经附上了一些图片,请查看此图片,并在我做错或错过的地方给我答案。
Set wCompact hAny and wCompact hRegular UIViewController.But before apply Constraints select size from Attributed Inspector because we are not familiar with the size of wCompact hAny and wCompact hRegular but after selecting size we get idea of iPhone Size. 设置wCompact hAny和wCompact hRegular UIViewController。但是在应用“约束”之前,请从属性检查器中选择大小,因为我们不熟悉wCompact hAny和wCompact hRegular的大小,但是在选择大小后,我们会了解iPhone的大小。
not apply centre Horizontal and vertical to the super view. 没有中央的水平和垂直应用到超级视图。 and also Set Height and Width according to requirement.
并根据需要设置高度和宽度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.