浏览代码

Updated to Swift 2.0 Changes

Just stumbled upon this when I was using Alamofire with one of my Swift 2.0 projects, and thought I'd do a quick fork.
Benedikt Terhechte 10 年之前
父节点
当前提交
7d0b8c9dc7
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      Alamofire.playground/section-1.swift

+ 5 - 4
Alamofire.playground/section-1.swift

@@ -5,9 +5,10 @@ import Alamofire
 // Allow network requests to complete
 // Allow network requests to complete
 XCPSetExecutionShouldContinueIndefinitely()
 XCPSetExecutionShouldContinueIndefinitely()
 
 
-Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
+Alamofire.request(.GET, URLString: "http://httpbin.org/get", parameters: ["foo": "bar"])
          .responseString { (request, response, string, error) in
          .responseString { (request, response, string, error) in
-            println(request)
-            println(response)
-            println(string)
+            print(request)
+            print(response)
+            print(string)
          }
          }
+