Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + (BMHttpAudioStreamManager*) getInstance {
- if (singletonInstance == nil) {
- singletonInstance = [[super alloc] init];
- }
- return singletonInstance;
- }
- + (instancetype)sharedGameData {
- static id sharedInstance = nil;
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
- sharedInstance = [[self alloc] init];
- });
- return sharedInstance;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement