AutoLayout: removeFromSuperview / removeConstraints throws exception and crashes hard

后端 未结 13 2241
谎友^
谎友^ 2020-11-27 11:05

We use auto layout constraints selectively, primarily to position labels in relation to editable field elements (UITextView, UITextField, typically). However, since impleme

13条回答
  •  误落风尘
    2020-11-27 11:32

    Had the same issue, solved it by deleting constraints one at a time in IB until the crash was solved. This narrowed it down to the offending constraint. I then reinstated said constraint, but reversed the items:

    enter image description here

    You may be as lucky and be able to solve your AL problems as easily.

提交回复
热议问题