Open FuLingTaiHexiaoke opened 6 years ago
set the translatesAutoresizingMaskIntoConstraints to YES;
i got a console warning when the translatesAutoresizingMaskIntoConstraints is NO.So i change the value then the warning disappeared.
templateCell.contentView.translatesAutoresizingMaskIntoConstraints = YES;
[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: