Open bangedorrunt opened 11 years ago
Replace that line with the following code:
NSAttributedString *attributedText =[[NSAttributedString alloc] initWithString:textTest attributes:@{NSFontAttributeName: self.font}];
CGRect rect = [attributedText boundingRectWithSize:(CGSize){1024.0, CGFLOAT_MAX}options:NSStringDrawingUsesLineFragmentOrigin context:nil];
CGSize sizeTest = rect.size;
Current version is not working with iOS7, the view is showed up behind navigation bar, not the bottom and I see the following depreciation message
/UILabel+WBExtensions.m:40:37: 'sizeWithFont:forWidth:lineBreakMode:' is deprecated: first deprecated in iOS 7.0 - Use -boundingRectWithSize:options:attributes:context: