0

I am experiencing some animation glitches when insert new rows in a section and height for header is set to be UITableViewAutomaticDimension with an estimated height. Also, as you may notice, when deleting the rows the headers are jumping directly to the final position.

enter image description here

On the other hand, glitch disappears if estimated is set to 0 (which means no estimation), but height of header is not computed properly.

enter image description here

Any clue?

CRoig
  • 691
  • 5
  • 24

1 Answers1

0

Since I got any answer, and after doing some research in the documentation, I can conclude this is a limitation on the SDK. If I calculate the needed height using:

[header.contentView systemLayoutSizeFittingSize:
                  withHorizontalFittingPriority:
                        verticalFittingPriority:];

rather the automaticDimension, it works fine and no glitch appears.

CRoig
  • 691
  • 5
  • 24