简体   繁体   中英

Calling an entity category in Objective-C iOS 7

I have a category:

#import "Users+Authentication.h"

@implementation Users (Authentication)

- (void) users:(NSSet *)userEmails inManagedObjectContext:(NSManagedObjectContext *)context
{
   // Saves the users to sqllite

I know how to call it if it were a class method ( + (Users ....) but how do I call this from my view controller correctly?

Make sure the method is declared in Users+Authentication.h. Then make sure you import that file wherever you need to use it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM