Created
January 15, 2015 18:45
-
-
Save jacksonh/35b60775ee7e9bf4dac8 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
// Public | |
@interface Image() | |
@property (assign, nonatomic, readonly) CGSize size; | |
@end | |
// Private | |
@interface Image() | |
@property (assign, nonatomic, readwrite) CGSize size; | |
@property (assign, nonatomic, readonly) CGFloat width; | |
@property (assign, nonatomic, readonly) CGFloat height; | |
@end | |
@implementation Image () | |
- (void)mantleDidFinishParsing | |
{ | |
_size = CGSizeMake (self.width, self.height); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment