I have a UITableView with some sections and rows.
I want to move one row from one section to another section, when I call a function (so not my fingers and I do not want use edit mode of UITableView).
How can I do this?
If I recreate a datasource and reload table, it’s ok, but it not use animation.
UITableViewoffers you methods for this:call
beginUpdates, update your datasource, call moveRowAtIndexPath and finally callendUpdatesonUITableViewEDIT: moveRowAtIndexPath is only for iOS 5+
so you would rather use this: