【发布时间】:2016-01-08 18:40:06
【问题描述】:
Here 是我需要下载到我的应用程序的内容。
我是这样要求的:
GET("identifiers/pl-normal.json", parameters: nil, progress: nil, success: { sessionDataTask, response in
}) { sessionDataTask, error in
completionBlock(error)
}
网址请求正确:GET Optional(http://www.taboo.blue-world.pl/api/identifiers/pl-normal.json)
但是failure 块被调用,为什么?
【问题讨论】:
-
您可以先告诉我们您遇到了什么错误。
-
The data couldn’t be read because it isn’t in the correct format.- 这是错误内容。
标签: ios json swift afnetworking