This is a total noob question but I'm testing out AFNetworking2 specifically, the UIWebView+AFNetworking piece. But how do I call loadRequest. I have:
NSURL *websiteUrl = [NSURL URLWithString:@"http://www.google.com"]; //fine
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:websiteUrl]; //find
[self.myWebView loadRequest:urlRequest progress:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))^{ // do I need second carat?
//NSLog(@"writing bytes %i", bytesWritten); // how to get access to bytesWritten?
NSLog(@"writing bytes");
}....
but I want to NSLog the bytesWritten. Block syntax always throws me for a loop. Do I need the second carat in the call?
Here's a link to docs for the call: http://cocoadocs.org/docsets/AFNetworking/2.0.3/Categories/UIWebView+AFNetworking.html