forkingdog / UITableView-FDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating
MIT License
9.94k stars 2.01k forks source link

10.3下报 约束冲突,所有cell都有这种情况 #292

Closed anyuhao closed 7 years ago

anyuhao commented 7 years ago

demo 有会出现这种情况

cell. UITableViewCellContentView.width = 0 与 cell. UITableViewCellContentView.width = 375 (对应的最大宽度) MAXWidth 冲突

FDTemplateLayoutCell layout cell created - FDFeedCell 2017-04-05 15:14:53.986190+0800 Demo[4230:1055755] [LayoutConstraints] 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. ( "<NSLayoutConstraint:0x174085eb0 UITableViewCellContentView:0x100422b60.width == 341 (active)>", "<NSLayoutConstraint:0x17008f5a0 'UIView-Encapsulated-Layout-Width' UITableViewCellContentView:0x100422b60.width == 0 (active)>" )

anyuhao commented 7 years ago

demo 也会出现这种情况.

billding211 commented 7 years ago

今天做的时候也发现这个情况,希望大大看一看.....

KenmuHuang commented 7 years ago

+1;iOS 10.3 默认会添加对应的宽度约束,从而导致了约束冲突。希望能针对系统版本进行去掉默认约束处理来解决此问题

BetrayalPromise commented 7 years ago

+1约束冲突看着真揪心

leejtom commented 7 years ago

看来不是我一个人遇到了。QAQ

kanting commented 7 years ago

所以解决方法是?

Jetsond commented 7 years ago

解决方法呢

JiangWenjia commented 7 years ago

同样的问题。。。

Daren-Wang commented 7 years ago

同样的问题

taylor-young commented 7 years ago

同样的问题

ghost commented 7 years ago

一开始还以为是masonry问题,后来发现是这个。

roadProgram commented 7 years ago

界面看着没有问题,但是控制台一直报冲突 这该怎么解决呢?

HY-Vae commented 7 years ago

@ @KenmuHuang 针对系统版本进行去掉默认约束怎么去掉?

weekwood commented 7 years ago

Same as #291