【发布时间】:2015-11-13 15:05:24
【问题描述】:
对不起我的英语不好:)
所以我们开始吧。我开始在 Swift 2 中创建 iPhone 应用程序。 我想使用 API。对于请求,我使用了 Alamofire 3.0 库。这工作正常,但我无法处理 JSON。我尝试使用 SwiftyJSON,但我不知道它是如何工作的。有我的代码:
let headers = [
"Content-Type": "application/json"
]
Alamofire.request(.GET, "API URL", headers: headers)
.responseJSON { response in
if response.result.isSuccess {
}
}
我希望有人可以帮助我。 ;) 谢谢
【问题讨论】: