4.IOS(swift)-数据存储 · Plist File读写

Plist File读写
http://www.tuicool.com/articles/vY7vMjZ

var diaryList:String = NSBundle.mainBundle().pathForResource("KMSourceConfig", ofType:"plist")!

var data:NSMutableDictionary = NSMutableDictionary(contentsOfFile:diaryList)!

var version:String = data.objectForKey("version") as String
        println(version)

你可能感兴趣的:(4.IOS(swift)-数据存储 · Plist File读写)