在swift里可以轻松调用objective-c的类
已经在目录下新建了一个setting.plist
1 2 3 |
let settingPath = NSBundle.mainBundle().pathForResource("setting", ofType: "plist") let settingDict = NSDictionary(contentsOfFile: settingPath) let namesStr = settingDict.objectForKey("lang_names") |