我的世界

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)
上一篇 下一篇

猜你喜欢

热点阅读