Created
March 22, 2015 17:36
-
-
Save reddavis/213fc35097c3d0544a06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "REDModel.h" | |
@interface TestUser : NSObject <REDModel> | |
@property (copy, nonatomic) NSString *name; | |
- (instancetype)initWithIdentifier:(NSString *)identifier; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment