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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -