Skip to content

Instantly share code, notes, and snippets.

@iggym
Forked from jyaunches/gist:5083231
Created July 25, 2013 16:06
Show Gist options
  • Save iggym/6081232 to your computer and use it in GitHub Desktop.
Save iggym/6081232 to your computer and use it in GitHub Desktop.
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:@"http://someurl/blah];
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id resultJSON) {
[self processResult:resultJSON];
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
[self processFailuer:error];
}];
[operation start];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment