If this URL returns HTML, you can use the download method (HTTML): (NSString *) baseURUR: (NSURL *) baseURL for the UIWebView.
Sort of:
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { [webView loadHTMLString:responseObject baseURL:url]; //If responseObject is HTML NSLog(@"Success"); } failure: ^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Failure"); }];
The only thing that can change is the response object. Perhaps you are not getting a string, but NSURLResponse or something like that.
source share