uiwebview Unable to read document

Here is the code

- (void)loadUrlWithString:(NSString *)path
{
    NSURL *url = [NSURL fileURLWithPath:path];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:request];
}

The path is right. I could open this document with msword or pages.

And these words shows on UIWebview finally "Unable to Read Document An error occurred while reading the document"

Just this file , other documents (.doc) are fine.

sorry for my poor English

Please edit info.plist

set App Transport Security Settings -->Allow Arbitrary Loads->yes

you should enable http manually~

现在苹果默认只允许通过https传输哟

uiwebview Unable to read document
 
 
Q