我尝试在我的项目上安装 yapdatabase,但我遇到了 self.connexion 为空的问题。
@implementation DataManager
- (instancetype)init {
self = [super init];
if (self) {
self.database = [[YapDatabase alloc] initWithPath:@"myDtabase.sqlite"];
self.connexion = [self.database newConnection];
}
return self;
}
-(NSMutableArray *)getArtists {
NSLog(@"%@", self.connexion);
}
怎么了 ?