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)