TableView re-Rendering

I found that re-sizing the tableView the rows do not move the the new corresponding locations. I am shrinking the top down a little bit, but when doing this I lose the category row since it doesn’t follow the table properly. I have been deleting all rows, then calling a function that re-populates the whole table. Is there a more elegant way of doing this? reloadData() does not correct this.

Not sure I need to place any code here since it’s pretty simple. Just slightly shifting the whole tableView down and changing the height at the same time. When pressing the button to switch it back it looks normal again considering it goes back to it’s original location. If I re-render the whole tableview again with new data, then move back to the original location it leaves a gap above the category row. 

Also, when moving the tableview to it’s original size/position after being shrunk there is a gap above the top category row. When scrolling through the tableview the categories actually work right (move to the very top), but as soon as I scroll back completely it continues to have a gap until re-rendering all of the rows. 

I would suggest deleting and recreating the table.  There are too many moving parts to adjust by changing width and heights.

Rob

Rob,

Thanks for the reply. Just needed some clarification as to if I should be doing something different. Have a good one!

Also, when moving the tableview to it’s original size/position after being shrunk there is a gap above the top category row. When scrolling through the tableview the categories actually work right (move to the very top), but as soon as I scroll back completely it continues to have a gap until re-rendering all of the rows. 

I would suggest deleting and recreating the table.  There are too many moving parts to adjust by changing width and heights.

Rob

Rob,

Thanks for the reply. Just needed some clarification as to if I should be doing something different. Have a good one!