+ (ThemeManager *)sharedInstance
{
static dispatch_once_t once; //只执行一次
static ThemeManager *instance = nil; //简历静态单例
dispatch_once( &once, ^{
instance = [[ThemeManager alloc] init];
} );
return instance;
}
2024-02-24 21:30:22
+ (ThemeManager *)sharedInstance
{
static dispatch_once_t once; //只执行一次
static ThemeManager *instance = nil; //简历静态单例
dispatch_once( &once, ^{
instance = [[ThemeManager alloc] init];
} );
return instance;
}