+ (ThemeManager *)sharedInstance
{
static dispatch_once_t once; //只执行一次
static ThemeManager *instance = nil; //静态单例
dispatch_once( &once, ^{
instance = [[ThemeManager alloc] init];
} );
return instance;
}
+ (ThemeManager *)sharedInstance
{
static dispatch_once_t once; //只执行一次
static ThemeManager *instance = nil; //静态单例
dispatch_once( &once, ^{
instance = [[ThemeManager alloc] init];
} );
return instance;
}