0

I have variable cell height working with auto-layout (ios8) as per this answer.

Cell heights are correct when table is loaded. But if I scroll the table cell height is not correct for some cells. Seems cell is being reused without height being readjusted.

I have one custom view in the cell that determines the height of the cell. I have overridden instrinsicContentSize for that view.

It seems instrinsicContentSize is not called on cell reuse. I have tried setNeedsLayout, setNeedsDisplay etc to get cell height to be updated on resuse but no luck.

Community
  • 1
  • 1
jamihash
  • 1,900
  • 1
  • 12
  • 15

1 Answers1

1

Needed to call invalidateIntrinsicContentSize for the custom view when configuring cell.

jamihash
  • 1,900
  • 1
  • 12
  • 15