How to load an .rtfd.zip file into an iPad UIWebView -


I have an iPad UIWebView in which to display some rtfd.zip files. I try to do this:

  - (zero) visibleVIPE: animated (BOOL) {[self load file: string]; } - (zero) Load file: (NSString *) file {NSString * resourcePath = [[NSBundle main bundle] bundle path]; NSString * sourceFilePath = [sourcePath stringByAppendingPathComponent: file]; NSURL * url = [text with NSUr file URL: sourceFilePath isDirectory: no]; NSURLRequest * Request = [NSURL request request with url: url]; [Webview loadRequest: request]; [Resource path release]; }  

But I only get blank page. Outlets are definitely well connected - UIWebView can load Google main page

What am I doing wrong? thank you in advanced!

Try to use it, I get the output using it,

  - (zero) Load file: (NSString *) file {UIWebView * webview = [[UIWebView alloc] init]; NSString * fullstral = [[NSBundle main bundle] Pathfoser resource: file type: @ "HTML"]; NSLog (@ "HTML String =% @", FullTrell); [Webview loadRequest: [NSRR request request with url: [NSU file file path: fullstral]]]; }  

Comments