Created
January 12, 2017 20:49
-
-
Save petermolnar-dev/a8b28bf7bcd543b24ed7810eb7e5be51 to your computer and use it in GitHub Desktop.
myObject.h - With convenience initilizer
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 : NsObject | |
//1 | |
- (instancetype)initWithTheOtherObjectDoingSomethingElse:(MyOtherObject *)alreadyExisitingObject isNightModeOn:(BOOL)isNightMode NS_DESIGNATED_INITIALIZER; | |
/** | |
Removing the default initalize | |
*/ | |
- ( instancetype)init NS_UNAVAILABLE; | |
/** | |
Convenience initializer | |
*/ | |
- (instancetype)initWithTheOtherObjectDoingSomethingElse:(MyOtherObject *)alreadyExisitingObject; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment