ListView for Xamarin.iOS: Reordering Cells
TKListView supports reordering cells. When reordering is enabled a drag handle appears in each cell. Using this handle cells can be dragged thus changing the order of items.
Enable cell reorder
Use the AllowsCellReorder
property to enable user to reorder cells. When reordering is allowed cells will display a draggable reorder handle as a visual hint.
Responding to cell reorder interaction
After the user performs a reorder gesture the following delegate method from the TKListViewDelegate will be called - DidReorderItemFromIndexPath
This is the place where you get information about which item was reordered and from what position and to what position. There you need to reorder your source data.
In case you are using TLKDataSource you may set it as a delegate for TKListView. With such a setup you will not need to reorder your data manually. TLKDataSource will handle that for you.
A sample ListView Reorder example can be found in our Native Xamarin.iOS examples.