如何将.rtfd.zip文件加载到iPad UIWebView中

如何将.rtfd.zip文件加载到iPad UIWebView中,ipad,uiwebview,Ipad,Uiwebview,我有一个iPad UIWebView,它必须显示一些rtfd.zip文件。我试着这样做: -(void) viewWillAppear:(BOOL)animated { [self loadFile:string]; } - (void)loadFile:(NSString*)file { NSString* resourcePath = [[NSBundle mainBundle] bundlePath]; NSString* sourceFilePath = [resourcePath s

我有一个iPad UIWebView,它必须显示一些rtfd.zip文件。我试着这样做:

-(void) viewWillAppear:(BOOL)animated {

[self loadFile:string];
}
- (void)loadFile:(NSString*)file
{
NSString* resourcePath = [[NSBundle mainBundle] bundlePath];
NSString* sourceFilePath = [resourcePath stringByAppendingPathComponent:file];
NSURL* url = [NSURL fileURLWithPath:sourceFilePath isDirectory:NO];
NSURLRequest* request = [NSURLRequest requestWithURL:url];
[webview loadRequest:request];
[resourcePath release];
}
但我只有一页空白。插座连接正确-UIWebView可以加载google主页

我做错了什么?
提前谢谢

试着用这个,我用这个得到了输出

    - (void)loadFile:(NSString*)file    {

        UIWebView *webview=[[UIWebView alloc] init];

        NSString *FullstrURL=[[NSBundle mainBundle] pathForResource:file 
                                                             ofType:@"html" ];
        NSLog(@"HTML String = %@",FullstrURL);
       [webview loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:FullstrURL]]];

 }

试着用这个,我用这个得到了输出

    - (void)loadFile:(NSString*)file    {

        UIWebView *webview=[[UIWebView alloc] init];

        NSString *FullstrURL=[[NSBundle mainBundle] pathForResource:file 
                                                             ofType:@"html" ];
        NSLog(@"HTML String = %@",FullstrURL);
       [webview loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:FullstrURL]]];

 }