UITableViewCell content moves when cell is reused

65 Views Asked by At

I have a custom UITableViewCell with some content defined in a xib with nested stack views. Some views are added in code to the stackViews so each cell may have different height.

When moving away from the tableview (ie. push/pop another ViewController and scrolling back to the first cell (which was not visible when leaving the view) the content is moved down (see picture) and does not completely fit in the cell. What is the cause of that?

enter image description here

0

There are 0 best solutions below