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

2015-03-24  本文已影响363人  俊瑶先森

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)
上一篇 下一篇

猜你喜欢

热点阅读