ios – Autolayout约束警告“将尝试通过打破约束来恢复”

ios – Autolayout约束警告“将尝试通过打破约束来恢复”,第1张

概述我正在尝试实施新闻提要(不知何故像没有评论或喜欢的Instagram).它工作,但 xcode继续显示此错误.我尝试改变所有约束,然而,我无法开始工作. tableview的高度为475,图像的高度为400,带有标签的白色区域为75. 我确实用过 self.tableView.estimatedRowHeight = 475;self.tableView.rowHeight = UITableV 我正在尝试实施新闻提要(不知何故像没有评论或喜欢的Instagram).它工作,但 xcode继续显示此错误.我尝试改变所有约束,然而,我无法开始工作. tablevIEw的高度为475,图像的高度为400,带有标签的白色区域为75.

我确实用过

self.tableVIEw.estimatedRowHeight = 475;self.tableVIEw.rowHeight = UItableVIEwautomaticDimension;

有帮助吗?

Unable to simultaneously satisfy constraints.    Probably at least one of the constraints in the following List is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSautoresizingMaskLayoutConstraints that you don't understand,refer to the documentation for the UIVIEw property translatesautoresizingMaskIntoConstraints) (    "<NSLayoutConstraint:0x174096530 UIImageVIEw:0x1743e9000.top == UItableVIEwCellContentVIEw:0x17418af80.topmargin + 13>","<NSLayoutConstraint:0x1740977f0 V:[PFImageVIEw:0x1743e8e00]-(0)-|   (names: '|':UItableVIEwCellContentVIEw:0x17418af80 )>","<NSLayoutConstraint:0x174097840 V:[UIImageVIEw:0x1743e9000]-(24)-[PFImageVIEw:0x1743e8e00]>","<NSLayoutConstraint:0x174097890 H:|-(0)-[PFImageVIEw:0x1743e8e00]   (names: '|':UItableVIEwCellContentVIEw:0x17418af80 )>","<NSLayoutConstraint:0x174097930 H:[PFImageVIEw:0x1743e8e00]-(0)-|   (names: '|':UItableVIEwCellContentVIEw:0x17418af80 )>","<NSLayoutConstraint:0x174097ac0 PFImageVIEw:0x1743e8e00.wIDth == PFImageVIEw:0x1743e8e00.height>","<NSLayoutConstraint:0x174097b60 V:[UIImageVIEw:0x1743e9000(30)]>","<NSLayoutConstraint:0x174092ed0 'UIVIEw-Encapsulated-Layout-WIDth' H:[UItableVIEwCellContentVIEw:0x17418af80(375)]>","<NSLayoutConstraint:0x174092f20 'UIVIEw-Encapsulated-Layout-Height' V:[UItableVIEwCellContentVIEw:0x17418af80(44)]>")Will attempt to recover by breaking constraint <NSLayoutConstraint:0x174097b60 V:[UIImageVIEw:0x1743e9000(30)]>Make a symbolic breakpoint at UIVIEwAlertForUnsatisfiableConstraints to catch this in the deBUGger.The methods in the UIConstraintBasedLayoutDeBUGging category on UIVIEw Listed in <UIKit/UIVIEw.h> may also be helpful.
解决方法 我实际上解决了从图像约束底部更改优先级到750的问题.感谢您的帮助. 总结

以上是内存溢出为你收集整理的ios – Autolayout约束警告“将尝试通过打破约束来恢复”全部内容,希望文章能够帮你解决ios – Autolayout约束警告“将尝试通过打破约束来恢复”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1044090.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存