Skip to content

Heads up: Probably need to update the code on your website #1

@andrewyap

Description

@andrewyap

Hi Rex,

Great tutorial at http://rexstjohn.com/lets-call-rest-apis-with-alamofire-ios-8-and-swift/.

I noticed a discrepancy between your code here and the blog.

On the blog, the response serializers don't have type T declared.

 public func responseObject(completionHandler: (NSURLRequest, NSHTTPURLResponse?, T?, NSError?) -> Void) -> Self {
    ...
 }

In this repo, it has the correct version:

 public func responseObject<T: ResponseObjectSerializable>(completionHandler: (NSURLRequest, NSHTTPURLResponse?, T?, NSError?) -> Void) -> Self {
    ...
 }

I'm not a twitter-er and couldn't find your email on your blog, so I thought I'd reach out here.

Thought you'd want to know so you can update the blog.

-A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions