0

Setting up the UILabel on the attributes inspector as follow expands the cell and display the large text as multiple lines correctly for a Subtitle tableview cell:

Lines = 0

Line Break = Word wrap

But this doesn't work in a custom tableview cell for some reasons. In the custom cell, I added new labels and setup the attributes the same way but the cell doesn't expand.

cxnguye
  • 19
  • 3

1 Answers1

0

It could be a matter of constraint. Check to see if there are any conflicting constraints or fixed settings.

enter image description here

In order for elements of a cell to be set flexibly, the height of the cell must be set to the automatic value.

enter image description here

When I set it up like this, I was able to get the results I wanted.

enter image description here

kyeahen
  • 161
  • 8