1.tableviewcell 高度自适应
主要方法:
计算cell高度[cell.contentview systemLayoutSizeFittingSize:UILayoutFittingCompressedSize];
// NSLayoutConstraint 使用条件 添加相对约束
ios 7.0 cell 高度计算修改:
- (CGFloat)tableView:(UITableView )tableView estimatedHeightForRowAtIndexPath:(NSIndexPath )indexPath。 设置cell 高度估值
- (CGFloat)tableView:(UITableView )tableView HeightForRowAtIndexPath:(NSIndexPath )indexPath 计算cell 显示高度</