Skip to content

Instantly share code, notes, and snippets.

@reddavis
Last active August 29, 2015 14:17
Show Gist options
  • Save reddavis/0e7f8e074720e6887b1f to your computer and use it in GitHub Desktop.
Save reddavis/0e7f8e074720e6887b1f to your computer and use it in GitHub Desktop.
#import "TestUser.h"
@interface TestUser ()
@property (copy, nonatomic) NSString *REDModelIdentifier;
@end
@implementation TestUser
@dynamic name;
- (instancetype)initWithIdentifier:(NSString *)identifier
{
self = [self init];
if (self)
{
self.REDModelIdentifier = identifier;
}
return self;
}
@end
#import "REDModel.h"
@interface TestUser : NSObject <REDModel>
@property (copy, nonatomic) NSString *name;
- (instancetype)initWithIdentifier:(NSString *)identifier;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment