0

iOS App Extension 怎样访问同一个SQLite

new created at4 years ago view count: 400

需要共享下数据

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

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

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

Recent search keywords