Console message: 2014-08-09 15:51:37.526 Agpeya[1306:29686] Cannot find data converter callback for uti public.rtf
From the iOS 8 Release Notes
Known Issue
RTF file support in UIWebView is broken.
Workaround: Show RTF files to the user is to use the Quick Look framework (QLPreviewController) or to load an NSAttributedString from the RTF file and show it in an UITextView, which will render the content in a much cleaner way.
I assume they will fix this in an upcoming release. One would hope.
Update your Xcode to 6.1, this issue is fixed in iOS 8.1. You can test it by running in iOS 8.1 simulator.
It worked for me.
Although i don't see any documentation for this, this might be a beta version bug.
worth waiting a while and see if it got fixed.
BTW, applications like Adobe Acrobat also fail to open rtf files on iOS8 beta 5, so it makes sense that this is a bug. The other option is that apple has stopped supporting this type, which sound very unlikely.
EDIT: seems that apple stopped supporting viewing these types natively. It doesn't work on the official iOS release too.
From the iOS 8 Release notes this is a known issue:
Workaround: Show RTF files to the user is to use the Quick Look framework (QLPreviewController) or to load an NSAttributedString from the RTF file and show it in an UITextView, which will render the content in a much cleaner way.
I assume that they will eventually fix the issue. I tried both QLPreviewController and a UITextView with an NSAttributedString and they both worked.
Note - Reading RTF files by UIWebview broken - This issue will be fixed with iOS 8.1
See iOS 8.1 Release Notes from Apple https://developer.apple.com/library/ios/releasenotes/General/RN-iOSSDK-8.0/
Search for Fixed in iOS 8.1 Beta RTF file support in UIWebView is broken
© 2022 - 2024 — McMap. All rights reserved.