0

iOS App Extension 怎样访问同一个SQLite

new created at6 years ago view count: 459

需要共享下数据

report
回复
0
NSString *appGroupId = @"group.YourAPP.extension";

NSURL *appGroupDirectoryPath = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:appGroupId];

NSURL *dataBaseURL = [directory  URLByAppendingPathComponent:@"dbName.db"];
6 years ago 回复

Recent search keywords