Created
April 16, 2015 10:58
-
-
Save reddavis/a2b8d23c5d29b41f8451 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
@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
@interface TestUser () | |
@property (copy, nonatomic) NSString *modelIdentifier; | |
@end | |
@implementation TestUser | |
@dynamic name; | |
- (instancetype)initWithIdentifier:(NSString *)identifier | |
{ | |
self = [self init]; | |
if (self) | |
{ | |
self.modelIdentifier = identifier; | |
} | |
return self; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment