您的位置:首页 > 产品设计 > UI/UE

UITableView自动计算cell的高度

2016-08-01 11:51 471 查看
// cell的高度设置
self.tableView.estimatedRowHeight = 44;
self.tableView.rowHeight = UITableViewAutomaticDimension;

// 注册cell
[self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([CommentCell class]) bundle:nil] forCellReuseIdentifier:CommentId];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: