I have one summary page controller where I display all users from database file.
I'm using Core Data environment. In this page I have one button to delete all users from db. This is working fine but I'm not able to reflect those changes in current screen. I need to reload my view controller in order to reflect those changes on screen.
Here is what I do.
for (NSManagedObject * user in users) {
[delegate.managedObjectContext deleteObject:user];
}
NSError *saveError = nil;
[delegate.managedObjectContext save:&saveError];
How to refresh my current screen?