Swift 2 iOS 9: Plist Reading and Writing
问题 I believe something has changed within Swift 2, because no tutorials on how to read and write to property lists seem to be working. Can anyone whose developing for iOS 9 share their method of R/W to Plists using Swift 2 on Xcode 7? 回答1: This is working for me on iOS 9 and Xcode 7: let filePath = NSBundle.mainBundle().pathForResource("FileName", ofType: "plist")! let stylesheet = NSDictionary(contentsOfFile:filePath) The only thing is that the result is NSDictionary and not Dictionary . 回答2: