{
CGFloat AllHeight = 0;
if(![self.diary_content isEqualToString:@""]){
CGSize size = [TextFrame textStr:self.diary_content andFont:15 andSize:CGSizeMake(SCREEN_WIDTH-80, MAXFLOAT)];
AllHeight+=size.height;
}
float b = self.images.count/3.0;
NSInteger b1 = self.images.count/3;
if(b!=b1){
b1+=1;
}
AllHeight+=(b1*(SCREEN_WIDTH/4-10))+(b1*10);
AllHeight+=50;
if(AllHeight<=120){
AllHeight=120;
return AllHeight;
}else{
return AllHeight;
}
}
self.diary_content 是文本內容