自适应行高

    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.estimatedRowHeight = 120.0; // 设置为一个接近“平均”行高的值

PS:需依赖Auto Layout.

posted on 2016-06-03 16:17  微末凡尘12138  阅读(113)  评论(0编辑  收藏  举报

导航