如果想使用Masonry让cell自动撑开合适高度,需设置tableview的预估高度:
self.tableView.estimatedRowHeight = 100;
self.tableView.rowHeight = UITableViewAutomaticDimension;
如果想使用Masonry让cell自动撑开合适高度,需设置tableview的预估高度:
self.tableView.estimatedRowHeight = 100;
self.tableView.rowHeight = UITableViewAutomaticDimension;
本文标题:ios UITableViewCell自动计算高度
本文链接:https://www.haomeiwen.com/subject/xmnlnhtx.html
网友评论