开发者

Reordering UITableView rows programmatically with animation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜