解决方法
是的,这可以使用UIWebview完成,肯定会被Apple接受.
NSURL *targetURL = [NSURL URLWithString:@"http://yourdomain.com/file_toopen.pdf"]; NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; [webView loadRequest:request];
NSString *path = [[NSBundle mainBundle] pathForResource:@"filetoopen" ofType:@"pdf"]; NSURL *targetURL = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; [webView loadRequest:request];