Difference of 2 NSArray's for animated insert/delete in UITableView

Posted by Alexander Cohen on Stack Overflow See other posts from Stack Overflow or by Alexander Cohen
Published on 2010-03-13T20:04:43Z Indexed on 2010/03/13 20:05 UTC
Read the original article Hit count: 593

At some point in my Application, I have an NSArray whose contents change. Those contents are shown in a UITableView. I'm trying to find a way to find the diff between the contents of before and after of the NSArray so i can pass the correct indexPaths to insertRowsAtIndexPaths:withRowAnimation: and deleteRowsAtIndexPaths:withRowAnimation: in order to have the changes nicely animated. Any ideas?

thx

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about animation