UITableviewCell 高度自适应

    self.deviceTable.estimatedRowHeight=44;
    self.deviceTable.rowHeight=UITableViewAutomaticDimension;
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{

    return UITableViewAutomaticDimension;

}

猜你喜欢

转载自www.cnblogs.com/yangqinoak/p/10469009.html