码迷,mamicode.com
首页 > 编程语言 > 详细

swift 获取plist内容

时间:2015-11-12 13:24:43      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:

var cells: NSDictionary?



let path = NSBundle.mainBundle().bundlePath let plistName:NSString = "Property List.plist" let finalPath:NSString = (path as NSString).stringByAppendingPathComponent(plistName as String) cells = NSDictionary(contentsOfFile:finalPath as String)

 

swift 获取plist内容

标签:

原文地址:http://www.cnblogs.com/lyl-/p/4958387.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!