mirror of
https://github.com/SwiftyJSON/Alamofire-SwiftyJSON.git
synced 2026-01-12 22:31:08 +08:00
Per issue #21, the Xcode 6.3 compiler will throw an "Ambiguous use of 'responseSwiftyJSON'" error using the original code sample provided. Simply adding parentheses around the callback method seems to keep the compiler happy.
475 B
475 B
#Alamofire-SwiftyJSON
Easy way to use both Alamofire and SwiftyJSON
Requirements
- iOS 7.0+ / Mac OS X 10.9+
- Xcode 6.1
Usage
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
.responseSwiftyJSON({ (request, response, json, error) in
println(json)
println(error)
})