So I have implemented a cell with various different heights. The issue is that sometimes when the cell is loaded the height that it has is incorrect and I’d have to basically scroll down until the cell is not visible and then scroll back up again, so it gets re-layouted and has the correct height. How do I fix this?
Share
First off giving some code would help.
1) If you only have a few set heights. Such as 3 different cell heights, then you can create 3 different cell identifiers so that the reused cells are the wrong height.
2) If you cells are dynamic heights then make sure when you are reusing a cell that you are setting its properties correctly. For example if you are setting the height property with in cell == nil. You are only setting it on creation of new cells.
Also have you tried using