【发布时间】:2016-12-01 10:48:06
【问题描述】:
我在 Alamofire 4.0 中获取响应的代码
Alamofire.request(webpath).responseJSON
{
response in
//here I want to store response in nsmutabledictionary
}
在该响应中,我有 Data 对象,其中包含如下数据
{"Success":"True","Data":[{"Id":"4","Name":"xyz"}]
我想将该 Data 对象保存在 NSMutableArray 中,以便在 UITableview 中显示
【问题讨论】:
-
一如既往地不要在 Swift 中使用
NSMutable...,除非你别无选择。给你。