(IOS)cell动态高度

// 1、设置tableView的属性self.tableView.rowHeight =UITableViewAutomaticDimension;self.tableView.estimatedRowHeight =44.0;// 这个属性非0,估计cell高度

// 2、至上而下设置cell的约束,注意,上下左右最好都要顶到cell的四周

你可能感兴趣的:((IOS)cell动态高度)