Hello,
I am implementing UITableView with multiple sections.
Setting contentoffset programmatically when offset is out of the scope of contentsize, is making top cell or the last cell stuck at the center of the table view leaving blank space at top or bottom.
Now when scrolling up or down on table view make cells scroll to the proper position.
I have applied logic that whenever the user does some action like clicking on a button or gesture, few cells will hide. While hiding the cell I am making the height of those hiding cells 0 as well.