Load file in Today extension
问题 I've been trying to create a Today extension that needs access to a .plist file in the documents directory. I have setup the App group for both the app and the extension. While I have seen examples for NSUserDefaults , I couldn't find anything for accessing files. I tried accessing the file like this (which works in the app itself) let paths = NSSearchPathForDirectoriesInDomains( .DocumentDirectory, .UserDomainMask, true) let documentsDirectory = paths[0] as String let filePath = "\