提交 dde412a7 编写于 作者: J Jan Kase

fixed example project and using responseString with old syntax

上级 88ca2a24
......@@ -75,7 +75,7 @@ class DetailViewController: UITableViewController {
refreshControl?.beginRefreshing()
let start = CACurrentMediaTime()
request?.responseString { request, response, body, error in
request?.responseString { request, response, result in
let end = CACurrentMediaTime()
self.elapsedTime = end - start
......@@ -86,7 +86,7 @@ class DetailViewController: UITableViewController {
if let segueIdentifier = self.segueIdentifier {
switch segueIdentifier {
case "GET", "POST", "PUT", "DELETE":
self.body = body
self.body = result.value
case "DOWNLOAD":
self.body = self.downloadedBodyString()
default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册