forkingdog / UITableView-FDTemplateLayoutCell

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

demo可以跑, 控制台打印一堆约束错误 #302

Open xlsd opened 7 years ago

xlsd commented 7 years ago

snip20170427_2

weekwood commented 7 years ago

@giveMeHug, please tell me your device os version and demo version?

xlsd commented 7 years ago

xcode 8.2.1 demo version 1.6 beat

xlsd commented 7 years ago

在模拟器上跑会打印约束问题 but 在真机上没有上述情况

weekwood commented 7 years ago

@giveMeHug simulator version?

weekwood commented 7 years ago

@giveMeHug good catch, issue confirmed. thanks your report.

Ethan89 commented 7 years ago

I have the same problem on iOS10.2, But it's ok on iOS8.1. Both iOS10.2 and iOS8.1 are simulator version.
I solve the problem by adding widthFenceConstraint.priority = UILayoutPriorityDefaultHigh; in methodfd_systemFittingHeightForConfiguratedCell: fix the problem.

weekwood commented 7 years ago

@giveMeHug would you mind to use pod 'UITableView+FDTemplateLayoutCell', :git => "https://github.com/forkingdog/UITableView-FDTemplateLayoutCell.git", :branch => "master" to test if it works. we will release ASAP.