There is a UIView on which the UILabel is located, and the numberOfLines property is set to zero. How to resize a UIView if the text in the label is more than one line.
let someView = NSBundle.mainBundle().loadNibNamed("foo", owner: self, options: nil)[0] as! foo someView.label.text = text