1,读取
代码:
var diaryList:String = NSBundle.mainBundle().pathForResource("DiaryList", ofType:"plist")
var data:NSMutableDictionary = NSMutableDictionary(contentsOfFile:diaryList)
var diaries:NSArray = data.objectForKey("Diaries") as NSArray
println(data)
|
请发表评论