Plist 文件读取
2016-05-13 本文已影响98人
和成长有关
1、Info.plist文件的读取方式
var infoPlist = NSBundle.mainBundle().infoDictionary
print(softVersion)
let filePath = NSBundle.mainBundle().pathForResource("Info.plist", ofType: nil)
let infoPlist = NSDictionary(contentsOfFile: filePath!)
print(infoPlist)