MGSwipeTableCell icon indicating copy to clipboard operation
MGSwipeTableCell copied to clipboard

Swiped state is not preserved when uitableview reloaddata method is called

Open swathi1606 opened this issue 9 years ago • 3 comments

In my table view, few of the cells are MSSwipeTableCell while others are UITableViewCell. I am fetching data for different cells using service calls in blocks and updating the table view using table view's reloaddata method.

In slow network situations, my MGSwipeTableCell appears and I can swipe on it while data for other cells is still being fetched. Once other cells have received the data, I am calling table view's reloaddata method. This is causing the swiped MGSwipeTableCell to snap back with no user action. Appreciate any help on how to fix it.

swathi1606 avatar Apr 25 '16 20:04 swathi1606

Perhaps there is a solution in the library itself, but barring that, perhaps you could note which cell is swiped before you call reload data, and re-open it after reload? or perhaps you could delay the reload until the user is done?

dxclancy avatar Apr 25 '16 22:04 dxclancy

I tried to mote the swipe offset before the reload data and set the swipe offset back again. Something like the solution described in this link. https://github.com/MortimerGoro/MGSwipeTableCell/issues/150 This is not working.

swathi1606 avatar Apr 26 '16 19:04 swathi1606

i faced the similar issue . I use reloadRowsAtIndexPaths:withRowAnimation: to reload rows those are not MSSwipeTableCell.

kumarabhishek9 avatar Sep 01 '16 19:09 kumarabhishek9