- (single *)getSingle{
static single *s=nil;
static dispatch_once_t t;
dispatch_once(&t, ^{
s=[[single alloc]init];
});
return s;
}
时间: 2024-10-06 04:42:02
- (single *)getSingle{
static single *s=nil;
static dispatch_once_t t;
dispatch_once(&t, ^{
s=[[single alloc]init];
});
return s;
}