Created
February 10, 2014 12:36
-
-
Save TheLarkInn/8915116 to your computer and use it in GitHub Desktop.
Singleton/sorta/sharedInstance
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
+(WebViewPopup*)sharedWebViewPopup | |
{ | |
static dispatch_once_t once; | |
static WebViewPopup* sharedWebViewPopup; | |
dispatch_once(&once, ^{ | |
sharedWebViewPopup = [[WebViewPopup alloc] init]; | |
}); | |
return sharedWebViewPopup; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment