Last active
January 12, 2017 20:45
-
-
Save petermolnar-dev/e1788e6ec70622410cb2e953f1b3eb4d to your computer and use it in GitHub Desktop.
myObject implementation
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
@interface MyObject() | |
@property (nonatomic) BOOL isNightMode | |
@property (strong, nonatomic) MyOtherObject *theObjectDoingSomethingElse | |
@end | |
@implementation MyObject | |
#pragma mark - Initializers | |
//2 | |
- (instancetype)initWithTheOtherObjectDoingSomethingElse:(MyOtherObject *)alreadyExisitingObject isNightModeOn:(BOOL)isNightMode { | |
self= [super init]; | |
if (self) { | |
_isNightMode = isNightMode; | |
_theObjectDoingSomethingElse = alreadyExisitingObject; | |
} | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment