美文网首页我的世界
Plist 文件读取

Plist 文件读取

作者: 和成长有关 | 来源:发表于2016-05-13 10:06 被阅读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)

相关文章

网友评论

    本文标题:Plist 文件读取

    本文链接:https://www.haomeiwen.com/subject/cznprttx.html