I am trying to configure a UITableViewCell loaded from a nib file. The cell has two elements - UIImageView on the left and a UILabel on the right.
UIImageView has the following constraints:
Height: 100 pt, Width: 100 pt, Leading space to superview = 10pt, Top space to superview = 10 pt and Bottom space to superview = 10 pt (If I don't set this Bottom space constraint then the cells don't display the images properly and they are all mangled)
UILabel has the following constraints:
Leading space from UIImageView = 10pt, Top space to superview = 10pt, Trailing space to superview = 10pt and Bottom space to superview = 10pt
UILabel has the number of lines set to 0, estimated row height for the table is set to 200 pt and the row height is set to UITableViewAutomaticDimension.
I want the UILabel to fit all the lines (and hence its number of lines is set to 0) and the cell to expand dynamically with the label height
However the cell is only expanding to a maximum height of 100 px (Height of UIImageView) and the label contents are truncated.
What am I doing wrong here?