I am getting this error when I try to delete all of the objects in my Mans CoreData Entity.
No visible @interface for 'CoreDataController' declares the selector 'deleteAllObjects:'
It is happening as a result of me calling this inside my CoreDataController class.
[self deleteAllObjects:@"Mans"];
Any help would be greatly appreciated.
You must make sure your
CoreDataControllerclass provides a visible declaration that it implementsdeleteAllObjects. In the latest versions of Xcode, methods in the same@implementationblock should all be visible to each other. Likewise, within the main .m file, there is a class extension; all methods declared there will be visible to methods within the file. In older versions of Xcode any method private to the implementation file had to be declared there as well. If your method is declared in a category, you must make sure to import the category header before referencing it.