NSLayoutConstraint常数不是无限的!那是非法的

问题描述 投票:-1回答:1

当我收到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```
ios swift crash constraints
1个回答
0
投票

已解决。这是由于无限的tableview高度引起的。请确保您的表格高度正确且无限制。

© www.soinside.com 2019 - 2024. All rights reserved.