5

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 update time or some other criteria.

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

I want reordering with animation.

Rob Hruska
  • 118,520
  • 32
  • 167
  • 192
loosy
  • 61
  • 1
  • 7
  • duplicated of http://stackoverflow.com/questions/2313252/programaticlaly-moving-rows-with-animation-in-uitableview – yonel Sep 19 '11 at 11:46

1 Answers1

2

Check out the UITableView reference.

You may want to use these methods:

– beginUpdates
– endUpdates
– insertRowsAtIndexPaths:withRowAnimation:
– deleteRowsAtIndexPaths:withRowAnimation:
– insertSections:withRowAnimation:
– deleteSections:withRowAnimation:
Christian Schnorr
  • 10,768
  • 8
  • 48
  • 83