Open objcxiaobai opened 6 years ago
并不管用,而且报的警告更多了。。。
UITableView+FDTemplateLayoutCell.m文件中templateCell.contentView.translatesAutoresizingMaskIntoConstraints = NO;这句话加个版本判断,ios 11就不执行
@cindyuan 兄弟,试了你方法,好像不行呀
我也是一直这样 崩
日志输出以解决 - 查看=>https://github.com/miniLV/UITableView-FDTemplateLayoutCell
vi Podfile: pod 'UITableView+FDTemplateLayoutCell', :git => 'https://github.com/miniLV/UITableView-FDTemplateLayoutCell'
[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>>