Clear Context using Coredata persistence

Asked

Viewed 99 times

1

I wonder if there’s any way to "clean up" my context using the Core Data.

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

Note: I have checked and there is no duplicate record in the database.

  • You need to show a little bit of code to get an idea of how you pull the data and how you create the context.

1 answer

0

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.