//detaillabel
UILabel *detaillabel=[[UILabel alloc] initWithFrame:CGRectMake(15, 300, 10, 10)];
//detaillabel自适应文字高度
//detaillabel.backgroundColor=[UIColor orangeColor];
detaillabel.font=[UIFont systemFontOfSize:17];
NSMutableDictionary *fontDic=[NSMutableDictionary dictionaryWithObjectsAndKeys:[UIFont systemFontOfSize:17],NSFontAttributeName,nil];
detaillabel.text=self.Ac.content;
CGRect rect=[detaillabel.text boundingRectWithSize:CGSizeMake(self.view.frame.size.width-30, 0) options:NSStringDrawingUsesLineFragmentOrigin attributes:fontDic context:nil];
detaillabel.frame=CGRectMake(15, 300, self.view.frame.size.width-30, rect.size.height);
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
//cell高度自适应
NSMutableDictionary *fontDic=[NSMutableDictionary dictionaryWithObjectsAndKeys:[UIFont systemFontOfSize:15],NSFontAttributeName, nil];
CGRect rect=[renovating.diary_content boundingRectWithSize:CGSizeMake(WIDTH-20, 0) options:NSStringDrawingUsesLineFragmentOrigin attributes:fontDic context:nil];
return rect.size.height;
}