问题
I have a detail view controller (part of master detail) and an edit screen that appears modally. After you save edit changes, the modal edit screen is dismissed, leaving the detail screen.
What is the best way to get the detail screen to refresh to show the changes made to the managed object context.
Normally the FRC is lazy loaded so the first time it appears it has new data but in this case, I think the screen is already there behind the modal edit screen so when the edit screen is dismissed, it continues to show old data.
Can I use something in lifecycle or how would I know the Detail VC know its back at top of stack?
Thanks for any suggestions.
来源:https://stackoverflow.com/questions/29736836/ios-xcode-coredata-how-to-force-reload-from-nsfetchedresults-controller-when-mo