我已经浏览 Apple 文档好几个小时了,Today Extension 上的内容太少了,所以我无法深入了解这个问题......
我正在尝试访问存储在其中的 plist 文件,NSDocumentDirectory
但没有运气。今天的扩展在项目中使用单独的目标正确设置,我的包标识符以“组”开头。但我每次都得到一个空值?
这是我的代码...
NSURL *storeURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.com.ORGANISATION.APPNAME.wigit"];
NSString *string = [storeURL.path stringByAppendingPathComponent:@"DataFile.plist"];
NSMutableArray *content = [NSMutableArray arrayWithContentsOfFile:filePath];
提前谢谢你的帮助!