staticFMDatabase*_dataDB;
+ (instancetype)shareInstance{
staticdispatch_once_tonceToken;
staticXDBData *dbData = nil;
dispatch_once(&onceToken, ^{
dbData = [[super allocWithZone:NULL] init];
});
return dbData;
}
+ (instancetype)allocWithZone:(struct_NSZone*)zone{
return[XDBData shareInstance];
}
- (instancetype)copyWithZone:(struct_NSZone*)zone{
return[XDBData shareInstance];
}
网友评论