Created
December 11, 2013 09:38
-
-
Save koromiko/7907584 to your computer and use it in GitHub Desktop.
singleton defination
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
+ (SSNetworkDataSource*)sharedDataSource{ | |
static dispatch_once_t pred; | |
static SSNetworkDataSource *obj = nil; | |
dispatch_once(&pred, ^{ | |
obj = [[SSNetworkDataSource alloc]init]; | |
}); | |
return obj; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment