What happens with constraints when a view is removed

前端 未结 6 1553
無奈伤痛
無奈伤痛 2020-12-07 21:31

The question I have is simple but I couldn\'t find any information in the documentation.

What happens with layout constraints when a view is removed from the view hi

6条回答
  •  不知归路
    2020-12-07 22:20

    The constraints are also removed when you [A removeFromSuperview]

    They are forgotten and adding A to C again adds no constraints.

提交回复
热议问题