【问题标题】:In Xcode ( Interface Builder) why UI Elements like UIView, UILabel, UITextField ... not responding to AutoLayout properties while try to modify?在 Xcode(Interface Builder)中,为什么 UIView、UILabel、UITextField 等 UI 元素在尝试修改时不响应 AutoLayout 属性?
【发布时间】:2021-05-23 05:43:20
【问题描述】:

当 UILabel 或 UIView 等 UI 元素放入 Storyboard 或 nib 时,有时会发生 UI 元素不响应 AutoLayout 属性更改的情况。

【问题讨论】:

标签: swift xcode autolayout


【解决方案1】:

在这种情况下,只需转到 XCode 的 Interface Builder 的“Size Inspector”选项卡,您只需更改属性名称“Layout”的值。 只需将值从“Autoresizing Mask”更改为“Inherited (Autoresizing Mask)Reference Image

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-13
    • 1970-01-01
    • 2017-10-02
    • 1970-01-01
    • 2022-08-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多