Last active
August 29, 2015 14:17
-
-
Save reddavis/0e7f8e074720e6887b1f to your computer and use it in GitHub Desktop.
This file contains 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 |
This file contains 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment