【问题标题】:Xcode Autolayout And Screen OrientationXcode 自动布局和屏幕方向
【发布时间】:2015-08-11 07:30:21
【问题描述】:

纵向时垂直排列的两个视图的正确约束是什么,当手机变成横向时,两个视图会自动水平排列。

【问题讨论】:

  • 您目前无法使用 auto-layout 重新排列布局,没有可以自动为您完成这项工作的约束序列。
  • 如果是这种情况,我将使用@paul.ding 的答案。谢谢。

标签: ios xcode autolayout


【解决方案1】:

我建议你使用Masonry,当手机变成横向时,你可以使用mas_updateConstraintsmas_remakeConstraints来改变它的约束。

【讨论】:

    猜你喜欢
    • 2013-09-15
    • 2015-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多