I have UILabel that the text is dynamically change based on server data. Sometime the data is so long that make my UILabel become multiline. Is the
UILabel
You can use this :
var labelHeight : CGFloat labelHeight = theLabel.boundingHeightForFixedWidth(theLabel.bounds.width)
Hope it help :)