Skip to content

Instantly share code, notes, and snippets.

@pengwll
Created November 25, 2013 03:12
Show Gist options
  • Save pengwll/7635709 to your computer and use it in GitHub Desktop.
Save pengwll/7635709 to your computer and use it in GitHub Desktop.
+ (AccountManager *)sharedManager {
static AccountManager *sharedAccountManagerInstance = nil;
static dispatch_once_t predicate;
dispatch_once(&predicate, ^{
sharedAccountManagerInstance = [[self alloc] init];
});
return sharedAccountManagerInstance;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment