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)
本文标题:Plist 文件读取
本文链接:https://www.haomeiwen.com/subject/cznprttx.html
网友评论