evermeer / AlamofireJsonToObjects

An Alamofire extension which converts JSON response data into swift objects using EVReflection
Other
161 stars 28 forks source link

Cannot invoke 'responseObject' #11

Closed podiyaaa closed 8 years ago

podiyaaa commented 8 years ago

Hi, im getting this error ..... screen shot 2015-12-28 at 5 15 36 pm

evermeer commented 8 years ago

Ah, I see that I did not update the documentation after the previous change of Alamofire. I will do that in a moment. Instead of returning a response and an error, Alamofire will now return a result. This is now how a cal will look like:

            Alamofire.request(.GET, URL)
                .responseObject { (response: Result<Feed, NSError>) in
                if let result = response.value {
                    // Now use your Result
                }
          }
podiyaaa commented 8 years ago

okay.. i will see and let you know ... thank you :+1: