Skip to content

Instantly share code, notes, and snippets.

@jhoughjr
Created January 26, 2013 18:09
Show Gist options
  • Save jhoughjr/4643570 to your computer and use it in GitHub Desktop.
Save jhoughjr/4643570 to your computer and use it in GitHub Desktop.
my first singleton!
+(PHColorSchemeManager*) sharedInstance
{
static PHColorSchemeManager* theInstance = nil;
if (theInstance == nil) {
theInstance = [[[self class] alloc] init];
}
return theInstance;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment