IOS/Xcode/Coredata: How to force reload from NSFetchedResults Controller When Modal Controller Dismisssed

懵懂的女人 提交于 2019-12-08 11:12:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!