+ (id)allocWithZone:(NSZone *)zone
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_instance= [super allocWithZone:zone];
});
return _instance;
}
时间: 2024-10-13 12:06:27
+ (id)allocWithZone:(NSZone *)zone
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_instance= [super allocWithZone:zone];
});
return _instance;
}