forkingdog / UITableView-FDTemplateLayoutCell

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

试了好多小伙伴方法,控制台一直爆这个 #371

Open objcxiaobai opened 6 years ago

objcxiaobai commented 6 years ago

[LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of the contentView of a UITableViewCell is not supported and will result in undefined behavior, as this property is managed by the owning UITableViewCell. Cell: <HomePageTableViewCell: 0x7f898b0be600; baseClass = UITableViewCell; frame = (0 0; 320 44); layer = <CALayer: 0x604000434780>>

imWalsh commented 6 years ago

并不管用,而且报的警告更多了。。。

cindyuan commented 6 years ago

UITableView+FDTemplateLayoutCell.m文件中templateCell.contentView.translatesAutoresizingMaskIntoConstraints = NO;这句话加个版本判断,ios 11就不执行

XiaoBaiClassmate commented 6 years ago

@cindyuan 兄弟,试了你方法,好像不行呀

NeighborWang commented 6 years ago

我也是一直这样 崩

miniLV commented 5 years ago

日志输出以解决 - 查看=>https://github.com/miniLV/UITableView-FDTemplateLayoutCell

vi Podfile: pod 'UITableView+FDTemplateLayoutCell', :git => 'https://github.com/miniLV/UITableView-FDTemplateLayoutCell'