I am working on widget app. I am totally new to Today Extension. I want share data between app and today extension. I have created one database. I have 4 tables in that database. I found this code to create database for App Groups :
NSString *appGroupId = @"group.amar.TodayExtensionSharingDefaults";
NSURL *appGroupDirectoryPath = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:appGroupId];
dataBaseURL = [appGroupDirectoryPath URLByAppendingPathComponent:@"widget.sqlite"];
NSLog(@"dataBaseURL %@", dataBaseURL);
It worked. My SQLite file has been created. But It does't show my tables. It shows empty database. I don't have any idea about it. Please help.
Aucun commentaire:
Enregistrer un commentaire