-(CGSize)sizeWithFont:(UIFont*)font
{
NSAttributedString *attributedText =
[[NSAttributedString alloc] initWithString:_title
attributes:@{NSFontAttributeName: font}];
CGRect rect = [attributedText boundingRectWithSize:(CGSize){[[UIScreen mainScreen] bounds].size.width - (PADDING*3), CGFLOAT_MAX}
options:NSStringDrawingUsesLineFragmentOrigin
context:nil];
CGSize result = rect.size;
return CGSizeMake(result.width + (PADDING*3), result.height + (PADDING*2.5));
}
FIX: Change the method "
sizeWithFont:" in DDBubble.m to: