iOS Objective C: Display RTF document
问题 I want to show a RTF document in a view. This document will be developed in Microsoft Word and will contains images. What is the best way to do this using standard routines provided? I would really like sample code to load a RTF document from the bundle. Kind Regards, Jason 回答1: UIWebView opens .rtf documents. Try something like NSURL *rtfUrl = [[NSBundle mainBundle] URLForResource:@"MyFileName" withExtension:@"rtf"]; NSURLRequest *request = [NSURLRequest requestWithURL:rtfUrl]; [_webview