I'm trying to connect my CoreData to iCloud using NSFetchedResultController basing on iCloud example.
NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:self.managedObjectContext sectionNameKeyPath:@"date" cacheName:@"Root1"];
aFetchedResultsController.delegate = self;
However i get such warning on second line: warning: Semantic Issue: Passing 'RootViewController *const __strong' to parameter of incompatible type 'id'. I think that setting delegate to self should be ok, but it's not. Anybody can help?
Make RootViewController
conform to the NSFetchedResultsControllerDelegate protocol.
@interface RootViewController : UIViewController <NSFetchedResultsControllerDelegate>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With