0
- (BOOL) webView:(UIWebView *) webView shouldStartLoadWithRequest:(NSURLRequest *) request navigationType:(UIWebViewNavigationType) navigationType
{
     
    NSString *mimeType = [request valueForHTTPHeaderField:@"Content-Type"];
    NSLog(@"Content-type: %@", mimeType);
    if(mimeType isEqualToString:@"application/vnd.ms-excel"] )
    {
        NSLog(@"Downloading file!");
       
        return NO;
    }
    return YES;
}
Arasuvel
  • 2,971
  • 1
  • 25
  • 40
  • https://stackoverflow.com/questions/7377565/how-to-download-files-from-uiwebview-and-open-again ? – Larme Apr 26 '22 at 08:40
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Apr 26 '22 at 13:55

0 Answers0