iPad的不从Interface Builder的尊重自动版式约束 [英] iPad Not Respecting AutoLayout Constraints from Interface Builder

查看:173
本文介绍了iPad的不从Interface Builder的尊重自动版式约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的iOS应用程序使用自动版式。在iPhone中,的UITableView 延伸到屏幕的两边;然而,在iPad上,它停止短边缘的几个像素。

I am using AutoLayout in my iOS App. On the iPhone, the UITableView extends to both edges of the screen; however, on the iPad, it stops a few pixels short of the edges.

下面是我的自动版式的限制:

Here are my AutoLayout constraints:

下面是问题的截图:

Here is a screenshot of the issue:

任何想法,这是为什么发生?

Any ideas as to why this is occurring?

推荐答案

追踪和领先的空间-16.00000,通过取消选中约束保证金选项让它0 ...因为它是-16.000,它使-16从太空边缘......结果
你应该做它像下面的图片...

Trailing and Leading space is -16.00000, make it 0 by uncheck constraint to margin option...Because it is -16.000, it makes -16 space from edges...
You should done it like below image...

其固定在边 0 只要你想它

这篇关于iPad的不从Interface Builder的尊重自动版式约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆