I have a UITableView with a custom UITableViewCell defined in a storyboard using auto layout. The cell has several multiline UILabels.
UITableView
UITableViewCell
UILabels
calling cell.layoutIfNeeded() inside cellForRowAt worked for me on ios 10 and ios 11, but not on ios 9.
cell.layoutIfNeeded()
cellForRowAt
to get this work on ios 9 also, I call cell.layoutSubviews() and it did the trick.
cell.layoutSubviews()