self.tableView.rowHeight = UITableViewAutomaticDimension; self.tableView.estimatedRowHeight = 120.0; // 设置为一个接近“平均”行高的值
PS:需依赖Auto Layout.
posted on 2016-06-03 16:17 微末凡尘12138 阅读(118) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3