Reordering UITableView Strings Programmatically with Animation

I am very versed in how to reorder a UITableView using the "reorder Control" user interface.

Implementing UITableView delegates and data source methods, as provided in the Apple documentation .

But I want the same functionality to be software.

I need this in a script when updating a row / cell. I want to reorder according to this update time or some other criteria.

I saw this functionality in this shopping list app .

I want to reorder the animation.

+4
source share
1 answer

Check out the UITableView link.

You can use the following methods:

 beginUpdatesendUpdatesinsertRowsAtIndexPaths:withRowAnimation: – deleteRowsAtIndexPaths:withRowAnimation: – insertSections:withRowAnimation: – deleteSections:withRowAnimation: 
+2
source

Source: https://habr.com/ru/post/1338913/


All Articles