Reputation: 9923
I'm having weird overlapping when i try to reloadData of the tableView, causing the cell's height to change (using UITableViewAutomaticDimension
), then the content get overlapped with the cell above it, cant figure out how to do it :/
After reload the view from under cell jump to above:
They are basically the same cell but the top one have that View height = 0 and have no data, And it only happen if the bottom cell is fullscreen (top cell is invisible), if the Revenue per hour cell is visible then this bugs wont appear
Upvotes: 1
Views: 2311
Reputation: 1224
This is probably due to set the same cell identifier, do you refresh cells before reusing them?
- (void)prepareForReuse { }
Implement this method on your table view cell classes. Hope this would be helpful to you.
Upvotes: 1