I've added a textView to my tableViewCell through the interfacebuilder. However i want to set the size equal the content in the textView. this does not seem to work. So far i've done below, which does not change the frame of the textView
var size: CGSize = cell.titleViewLabel.systemLayoutSizeFittingSize(cell.titleViewLabel.contentSize)
var frame: CGRect = cell.titleViewLabel.frame
frame.size.height = size.height
cell.titleViewLabel.frame = frame