staticThememanger *thememanger;
+(id )sharedmange
{
if (thememanger ==nil) {
thememanger = [[self alloc ]init];
}
return thememanger;
}
+(id )sharedmange
{
@synchronized(self)
{
if (thememanger ==nil) {
thememanger = [[self alloc ]init];
}
}
return thememanger;
}
+(id )sharedmange
{
//static dispatch_block_t once;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
thememanger = [[self alloc ]init];
});
return thememanger;
}