开发者

Reordering UITableView rows programmatically with animation

开发者 https://www.devze.com 2023-02-09 21:11 出处:网络
I very much know how to reorder UITableView rows using \"reorder Control\" by the user. By implementing UITableView delegates and datasource methods as it is provided in apple documentation.

I very much know how to reorder UITableView rows using "reorder Control" by the user.

By implementing UITableView delegates and datasource methods as it is provided in apple documentation.

But I want the same functionality programmatically.

I need this in the scenario when a row/cell is updated I want reordering according to that up开发者_运维技巧date time or some other criteria.

I've seen this functionality in this grocery list app.

I want reordering with animation.


Check out the UITableView reference.

You may want to use these methods:

– beginUpdates
– endUpdates
– insertRowsAtIndexPaths:withRowAnimation:
– deleteRowsAtIndexPaths:withRowAnimation:
– insertSections:withRowAnimation:
– deleteSections:withRowAnimation:
0

精彩评论

暂无评论...
验证码 换一张
取 消