Clear Context using persistence CoreData

1

I would like to know if you have any way to "clean" my context using Core Data .

I have a problem that when I update the application, the same one after saving the records in the database, also maintains in context . So every time I show on the screen these records the same shows duplicate, because it takes the bank and the temporary one that is in context .

Note: I already checked and did not have duplicate registration in the database.

    
asked by anonymous 22.12.2014 / 13:18

1 answer

0

Have you tried "reset ()" or delete (item)?

In delete you have to pass the item you want to clean ...

    
13.04.2017 / 21:41