当我收到API响应并提供此信息时,我的应用程序崩溃了。如何找到错误的具体位置?任何帮助将是可观的。谢谢!
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSLayoutConstraint constant is not finite! That's illegal. constant:inf firstAnchor:<NSLayoutDimension:0x600002874bc0 "UITableViewCellContentView:0x7ff45a76b080.height"> secondAnchor:(null)'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 681.17 - Device: iPhone 11 Pro Max (B3BFEE73-DA5A-4788-A90A-594C7678FB1B) - Runtime: iOS 13.3 (17C45) - DeviceType: iPhone 11 Pro Max```
已解决。这是由于无限的tableview高度引起的。请确保您的表格高度正确且无限制。