| 123456789101112131415161718192021222324252627282930 |
- //
- // RASingleton.m
- // iShop
- //
- // Created by Rui Zhang on 12/18/23.
- //
- #import "RASingleton.h"
- @implementation RASingleton
- #pragma mark - Method
- + (instancetype)sharedInstance {
-
- static RASingleton *singleton = nil;
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
-
- singleton = [[RASingleton alloc] init];
- // [[NSNotificationCenter defaultCenter] addObserver:singleton selector:@selector(handleLogin:) name:User_LoginOK_Notification object:nil];
-
-
- });
- return singleton;
- }
- @end
|