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)
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)