NSGenericException', reason: 'Unable to install constraint on view

后端 未结 7 1509
花落未央
花落未央 2020-12-09 16:05

Terminating app due to uncaught exception \'NSGenericException\'

Terminating app due to uncaught exception \'NSGenericException\', reason: \'Unable to

相关标签:
7条回答
  • 2020-12-09 16:34

    I had the same crash, and it turned out to be a floating-point precision problem with constraint multiplier values. I converted all my constraint multipliers to nice floating-point values (e.g. 0.375 instead of 0.35) and that fixed the crash.

    AutoLayout: removeFromSuperview / removeConstraints throws exception and crashes hard

    0 讨论(0)
提交回复
热议问题