AutoLayout constraints to UITableViewCell contentView not respected
问题 I'm trying to create dynamically resizing table view cells. I accomplished the resizing by using this answer, which is very detailed and helpful. However, the maximum width for the label is not being calculated correctly in heightForRowAtIndexPath . My cell currently only has one label in its contentView , with constraints set to pin all the label edges to the contentView edges. Here's what I have in IB The cell size is being calculated with an offscreen cell in heightForRowAtIndexPath using