0
這是我的應用程序的processContentChanges:方法,它是通過NSPersistentStoreDidImportUbiquitousContentChangesNotification
觸發:我應該在processContentChanges中做什麼:?
- (void)processContentChanges:(NSNotification *)notification {
[self.managedObjectContext performBlock:^{
// Merge incoming data updates in the managed object context
[self.managedObjectContext mergeChangesFromContextDidSaveNotification:notification];
// Post notification to trigger UI updates
#warning What do I actually do here?
}];
}
我用我的整個應用程序NSFetchedResultsController
S以便UI時,從其他設備通過iCloud中收到的變化自動更新。這一切似乎都奏效,但// Post notification to trigger UI updates
的評論已經存在於模板方法中。我是否應該在這裏做點什麼,或者我可以安全地讓事情保持原樣?