UItableView动态行高 用这两句实现(可以自己计算数据来实现,一般在model中计算)
// 动态行高 self.tableView.rowHeight = UITableViewAutomaticDimension; // 预估行高 self.tableView.estimatedRowHeight = 150; // 注:写这两句 可以不用实现tableView的代理方法 heightForRowAtIndexPath
// 动态行高 self.tableView.rowHeight = UITableViewAutomaticDimension; // 预估行高 self.tableView.estimatedRowHeight = 150; // 注:写这两句 可以不用实现tableView的代理方法 heightForRowAtIndexPath