ios - Core Data UITableView, temporarily deleting cell (obj-c) -


I'm populating my table with core data objects and I'm trying to implement some delete functionality. Although I am planning to add shake to the undo, so I do not want to save the managed object reference immediately. My problem is that I am defining the number of cells with the _entity.items.count that does not change until I save the managed object context.

So in short, is I going to keep a counter that I add and subtract every time that the user removes or adds an item again? (Do I want to reduce it by counting) or is there an alternative (preferably cleaner) method to deal with this problem? Thanks guys.


Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -