Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find protocol declaration for 'NSFetchedResultsControllerDelegate'

I like to populate records according to created date from database using CoreData ,so I am using NSFetchedResultsControllerDelegate for good feature ,as I add like:

@interface FBCDMasterViewController : UITableViewController 
                                        <NSFetchedResultsControllerDelegate>

Its giving error:

Cannot find protocol declaration for 'NSFetchedResultsControllerDelegate'

plase help out

like image 245
terminator Avatar asked Mar 07 '13 06:03

terminator


1 Answers

If you are using coreData, simply adding the framework is not enough. You also have to import the header in the files which need it.

#import <CoreData/CoreData.h>

This placed in your prefix Header file should fix it.

like image 184
Maverick1st Avatar answered Nov 15 '22 09:11

Maverick1st