Created
April 12, 2012 16:15
-
-
Save dickbrouwer/2368756 to your computer and use it in GitHub Desktop.
iOS singleton using +initialize
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
+ (void)initialize { | |
static BOOL initialized = NO; | |
if (!initialized) { | |
initialized = YES; | |
_sharedManager = [Manager new]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment