Files
Alamofire-SwiftyJSON/README.md
alexpls a4cba4c750 Provide code example that works with Xcode 6.3
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.
2015-05-22 20:33:06 +10:00

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)
                  })