iPhone开发 加载本地pdf到webview

//加载本地pdf到webview
-( void )loadDocument:(NSString*)documentName inView:(UIWebView*)webView
{
     NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
     NSURL *url = [NSURL fileURLWithPath:path];
     NSURLRequest *request = [NSURLRequest requestWithURL:url];
     [webView loadRequest:request];
}


你可能感兴趣的:(iPhone开发 加载本地pdf到webview)