简体   繁体   English

具有子视图屏幕的自动布局可发出不同的设备

[英]Autolayout with subview screen issue different devices

I have designed simple one page design for universal application. 我已经为通用应用程序设计了简单的一页设计。 so I had faced issue while checking the 4 inch devices its working fine. 所以我在检查4英寸设备工作正常时遇到问题。 other than 5.5 to above devices its not looking good. 除了5.5到以上的设备,它看起来不太好。

View(MAINVIEW)
    ScrollView
    View
    Label
     ..
     ..

above I have mentioned the structure of the page.below I have mentioned screen shots. 上面我提到了页面的结构。下面我提到了屏幕截图。 在此处输入图片说明

above Screen shots image I have designed. 以上是我设计的屏幕截图图像。 with all constraints. 受到所有限制。

在此处输入图片说明

after that I have checked the preview of the page design. 之后,我检查了页面设计的预览。 Iphone 4-inch its showing fine. Iphone 4英寸的显示效果很好。 but Iphone 5.5 its showing in bottom not filled whole page view. 但是Iphone 5.5在底部的显示并未填充整个页面视图。

It looks like then you have set the height constraint for ScrollView or view. 看来您已经为ScrollView或view设置了高度限制。 If you did this then remove that height constant and set the bottom constraint which should have 0 constant value to its superview. 如果执行了此操作,则删除该高度常数并设置底部约束,该约束的超级视图应为0常数。

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

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