UITableView animations for a "lazy" UI design?
Posted
by
donuts
on Stack Overflow
See other posts from Stack Overflow
or by donuts
Published on 2011-06-21T19:59:45Z
Indexed on
2011/06/22
0:23 UTC
Read the original article
Hit count: 165
I have a UITableViewController that allows the user to perform editing tasks.
Now, once a user has committed his change, the table view doesn't directly change the model and updates the table, rather "informs" the model what the user wants to do. The model in turn updates accordingly and then posts a notification that it has been changed.
As far as I've seen, I need to begin/end updates on the tableview and in between change the model to its' final form. My changes though, are asynchronous and cannot guarantee to update the model before 'tableview endupdates' is called.
Currently, each time I receive a 'model did change' notificaiton, I reload the entire table.
So, how can I really make cell animations (delete/insert) work? Should the model fire a notification for each little change instead of the entire table?
© Stack Overflow or respective owner