UIWebView cannot display RTF files in iOS 8
| Originator: | jnouwen | ||
| Number: | rdar://17395351 | Date Originated: | 6/20/2014 |
| Status: | Open | Resolved: | |
| Product: | iOS 8 | Product Version: | iOS 8 (12A4297e) |
| Classification: | Bug | Reproducible: | Always |
Summary: Previously, loading an RTF file from the app bundle and displaying it in a UIWebView worked fine. As of iOS 8 (beta 1 and 2), this no longer works. Steps to Reproduce: 1. Load an RTF file from the app bundle 2. Create an NSURLRequest for the RTF file 3. Have a UIWebView load that request NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Acknowledgements" ofType:@"rtf"]; NSURL *url = [NSURL fileURLWithPath:filePath]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [self.webView loadRequest:request]; Expected Results: The contents of the RTF file display in the UIWebView as it did in iOS 6 and 7. Actual Results: The web view displays the message "Unable to Read Document. An error occurred while reading the document" and the following message is logged to the console: "Cannot find data converter callback for uti public.rtf" Version: iOS 8 (12A4297e), iOS Simulator 8.0 (841)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
It's not just UIWebView; I'm seeing the same error in Safari.