I am implementing a tableview that has rows, which have children. Initially we have only the data for the parent rows. There is a download button to download the child data. Once the download is done, I used the method insertItemsAtIndex to add these then I reloadRowsForItems giving the parent. Sometimes this works perfectly fine, but sometimes the tableview scroll position will scroll to a new position. When this happens, some times the cell that performed the download is scrolled out of view.
With that, sometimes after this when I tap the cell to expand, the scroll position again jumps to a new place. It is as if the table view size or relative position of the cells is getting messed up and when performing this operation it is changing the scroll position to match what it thinks it should be.
I created a video of it, but I cannot attach the video to this issue.
I am implementing a tableview that has rows, which have children. Initially we have only the data for the parent rows. There is a download button to download the child data. Once the download is done, I used the method insertItemsAtIndex to add these then I reloadRowsForItems giving the parent. Sometimes this works perfectly fine, but sometimes the tableview scroll position will scroll to a new position. When this happens, some times the cell that performed the download is scrolled out of view. With that, sometimes after this when I tap the cell to expand, the scroll position again jumps to a new place. It is as if the table view size or relative position of the cells is getting messed up and when performing this operation it is changing the scroll position to match what it thinks it should be. I created a video of it, but I cannot attach the video to this issue.