diff --git a/README.md b/README.md index 8626abe..13d7c91 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0 ``` objective-c // AFGowallaAPIClient is a subclass of AFHTTPClient, which defines the base URL and default HTTP headers for NSURLRequests it creates -[[AFGowallaAPIClient sharedClient] getPath:@"/spots/9223" parameters:nil success:^(id response) { - NSLog(@"Name: %@", [response valueForKeyPath:@"name"]); - NSLog(@"Address: %@", [response valueForKeyPath:@"address.street_address"]); +[[AFGowallaAPIClient sharedClient] getPath:@"/spots/9223" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) { + NSLog(@"Name: %@", [responseObject valueForKeyPath:@"name"]); + NSLog(@"Address: %@", [responseObject valueForKeyPath:@"address.street_address"]); } failure:nil]; ``` @@ -118,10 +118,6 @@ If you are including AFNetworking in a project that uses [Automatic Reference Co Although this is suboptimal, forking the project into an ARC and non-ARC branch would be extremely difficult to maintain. On the bright side, we're very excited about [CocoaPods](https://github.com/alloy/cocoapods) as a potential solution. -## Dependencies - -* [JSONKit](https://github.com/johnezang/JSONKit) - ## Credits AFNetworking was created by [Scott Raymond](https://github.com/sco/) and [Mattt Thompson](https://github.com/mattt/) in the development of [Gowalla for iPhone](http://itunes.apple.com/us/app/gowalla/id304510106?mt=8).