Auto Layout Top 在顶部 10px space 时效果不佳
Auto Layout Top is not working well with 10px space at top
我正在构建 iphone 应用程序。我使用自动布局。
请检查以下图片。
如您所见,顶部space设置为0px。但在 运行 中,顶部 space 是 10px。
我想尽快解决这个问题。 P.S。在 iOS7 和 iOS8 上也是如此。
谢谢,
前往 constraint->edit
。将 First Item 和 Second item 都设置为 .top。并确保它不是 Relative to margin.
我正在构建 iphone 应用程序。我使用自动布局。 请检查以下图片。
如您所见,顶部space设置为0px。但在 运行 中,顶部 space 是 10px。
我想尽快解决这个问题。 P.S。在 iOS7 和 iOS8 上也是如此。 谢谢,
前往 constraint->edit
。将 First Item 和 Second item 都设置为 .top。并确保它不是 Relative to margin.