【问题标题】:Layout relative to margin warning XCode 6 but with no constraints相对于边距警告 XCode 6 但没有约束的布局
【发布时间】:2014-11-20 20:05:36
【问题描述】:

我收到了可怕的警告Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0,但在我的情况下,Margin 没有出现在情节提要中,并且有问题的标签(当我单击警告时突出显示的标签)没有任何限制。事实上,整个视图没有任何约束。

我看过其他帖子,例如。 Attribute Unavailable warning on iOS versions prior to 8.0,但正如我所说,找不到 Margin,也没有限制编辑。

我将添加约束并希望它消失,但它看起来像另一个错误......

【问题讨论】:

    标签: ios storyboard autolayout constraints xcode6


    【解决方案1】:

    我想我在 Interface Builder 中看到了与 UILabel 相同的东西。对我来说,选中此框即可消除警告。

    【讨论】:

    • 我也做了同样的事情,警告消失了。但它涉及什么语义?
    猜你喜欢
    • 1970-01-01
    • 2018-09-03
    • 2020-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多