I have a label in which content is loaded dynamically. I have tried almost all methods available in Stack overflow but i am not getting correct result.
Here is my code which i use right now, but it gives height less than the needed height.
var attributes = [UIFont(): UIFont.systemFontOfSize(13.0)]
var attrString:NSAttributedString? = NSAttributedString(string:content, attributes: attributes)
var newSize:CGRect = attrString!.boundingRectWithSize(CGSizeMake(myLabel.frame.width,CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin , context: nil )
content: text input myLabel: input label newSize: final size