1.修改tableView的属性
//行高自动检测 self.tableView.rowHeight = UITableViewAutomaticDimension; //设置行高预估值 self.tableView.estimatedRowHeight = 44;
//加载xib视图或直接注册xib cell自定义表格
cell = [[[NSBundle mainBundle] loadNibNamed:@"TweetCell" owner:self options:nil] firstObject];
2.AutoLayout布局高度
某些文本无法全部显示时,设置