简体   繁体   English

Xcode自动调整大小的XIB在iPhone 6s Plus上不正确

[英]xcode auto resizing xib not proper on iphone 6s plus

I am using auto resizing xib in my application. 我在应用程序中使用自动调整大小的xib。
I disabled size class and auto layout. 我禁用了尺寸类和自动布局。

this is how i set xib. 这就是我设置XIB的方式。
在此处输入图片说明

And this is how its looking on iphone 6s plus 这就是它在iPhone 6s Plus上的外观

在此处输入图片说明

How can i fit xib to all device without using auto layout and size class? 如何在不使用自动布局和尺寸类别的情况下将xib安装到所有设备上?

actually you set the layout for every label in left corner, thats the reason its showing full left. 实际上,您为左上角的每个标签设置了布局,这就是其显示为左全角的原因。

for your First label Size inspector is correct , if you need the modification do like 因为您的第一个标签Size inspector is correct ,如果您需要修改,请像

在此处输入图片说明

for your second Label do like 为您的第二个标签做喜欢

在此处输入图片说明

for your third and Final label Set like 为您的第三个和最终标签设置为

在此处输入图片说明

Update 更新

在此处输入图片说明

You can set label positions & width like see images: 您可以像查看图片一样设置label位置和宽度:

Label 1: 标签1: 在此处输入图片说明

Label 2: 标签2:

在此处输入图片说明

Label 3: 标签3:

在此处输入图片说明

Note: this will adjust the uilabels width & position according to the diff screen size not height . 注意:这将根据diff屏幕尺寸而不是height来调整uilabels width和位置。

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

相关问题 Xcode 7:为iPhone 6S plus的CollectionView设置顶部约束 - Xcode 7 : set top constraint for CollectionView for iPhone 6S plus Swift 2.0 Popover视图无法在iPhone 6s plus上获得正确的位置,但它在iPhone 6s上运行良好 - Swift 2.0 Popover view cannot get proper location on iPhone 6s plus but it works fine on iPhone 6s 显示UIAlertViewController时,XCODE iphone 6 plus和6s plus会显示警告 - XCODE iphone 6 plus and 6s plus shows warning when display UIAlertViewController 我没有在Xcode的“自动布局”部分的底部看到iPhone 6、6S尺寸来调整我的视图。 我只看到4s,SE,7和7 Plus尺寸 - I am not seeing iPhone 6, 6S sizes in bottom side in Auto Layout section in Xcode to adjust my view. I just see 4s, SE, 7 and 7 Plus sizes 自动版式无法在iPhone 6s Plus中正常运行 - Autolayouts not working as expected in iPhone 6s Plus 使用iPhone 6 / 6s / 7 Plus的本机分辨率 - Use iPhone 6/6s/7 Plus' Native Resolution iPhone 6s Plus无法侧面加载 - Iphone 6s plus not able to side load iPhone 6s plus中离子视图闪烁 - ionic view flickering in iPhone 6s plus iPhone 6S plus和iPhone 7 plus中的启动图像问题 - Issue with launch image in iPhone 6S plus and iPhone 7 plus 为iPhone 4S缩放文本输入-iPhone 6S Plus - Scale text inputs for iphone 4s- iphone 6s plus
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM