search

Home  >  Q&A  >  body text

ios - xib添加大于等于约束

天蓬老师天蓬老师2772 days ago666

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:47:45

    The intrinsic size attribute of imageview in xib defaults to default (system defined). Just change it to placeholder

    reply
    0
  • 迷茫

    迷茫2017-04-17 16:47:45

    This depends on the specific situation. You can imagine that after the right side becomes a greater than or equal constraint, there is no way to uniquely confirm the position and size of the view. Depending on the situation, you may need to set one of the width constraint/distance right constraint/aspect ratio constraint for the view. Note that after setting a new constraint, depending on the size of the screen, it may conflict with the previous greater than or equal to constraint. This is required You adjust the priority of constraints based on the specific situation.

    reply
    0
  • Cancelreply