I have looked into ways to get response header from UIWebview response. This SO question discusses it. But I am unsure if this is allowed by apple. I will have a webview sho
In addition to the answer provided by DBD, you will need to ensure that
The containing UIViewController is marked as a UIWebViewDelegate in the .h file:
@interface VIMAuthenticationViewController : UIViewController
The UIWebView's delegate is set to the containing UIViewController. This can be done directly in the Interface Building or by linking the web view and adding the following in view did load in .m fie:
[self.WebView setDelegate:self];
Add the code as provided by DBD:
(void)webViewDidFinishLoad:(UIWebView *)webView {
NSCachedURLResponse *resp = [[NSURLCache sharedURLCache] cachedResponseForRequest:webView.request];
NSLog(@"%@",[(NSHTTPURLResponse*)resp.response allHeaderFields]);
}