Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anyuhao opened this issue Apr 5, 2017 · 13 comments
Closed

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

anyuhao opened this issue Apr 5, 2017 · 13 comments

Comments

@anyuhao
Copy link

anyuhao commented Apr 5, 2017

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
Copy link
Author

anyuhao commented Apr 5, 2017

demo 也会出现这种情况.

@billding211
Copy link

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

@KenmuHuang
Copy link

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

@BetrayalPromise
Copy link

+1约束冲突看着真揪心

@leejtom
Copy link

leejtom commented Apr 7, 2017

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

@kanting
Copy link

kanting commented Apr 7, 2017

所以解决方法是?

@Jetsond
Copy link

Jetsond commented Apr 10, 2017

解决方法呢

@JiangWenjia
Copy link

同样的问题。。。

@Daren-Wang
Copy link

同样的问题

1 similar comment
@taylor-young
Copy link

同样的问题

@ghost
Copy link

ghost commented Apr 13, 2017

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

@roadProgram
Copy link

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

@HY-Vae
Copy link

HY-Vae commented Apr 17, 2017

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

@weekwood
Copy link
Member

Same as #291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests