【问题标题】:In iOS do views created in InterfaceBuilder have the option setTranslateAutoResizingMasksIntoConstraints set to false?在 iOS 中,在 Interface Builder 中创建的视图是否将选项 TranslatesAutoResizingMaskIntoConstraints 设置为 false?
【发布时间】:2018-02-07 13:42:09
【问题描述】:

在 iOS 中,在 Interface Builder 中创建并随后在代码中引用的视图是否会自动将选项 setTranslateAutoResizingMasksIntoConstraints 设置为 false?

【问题讨论】:

    标签: ios autolayout interface-builder


    【解决方案1】:

    是的,对于使用界面生成器中的约束创建的任何视图,选项 translateAutoResizingMasksIntoConstraints 设置为 false,但您在代码中创建的视图应该设置它

    【讨论】:

      猜你喜欢
      • 2021-05-17
      • 2013-08-13
      • 1970-01-01
      • 1970-01-01
      • 2011-04-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多