我正在UIWebView
使用以下代码加载一个pdf文件:
NSString *path = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@", pdfString] ofType:@"pdf"];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *req = [NSURLRequest requestWithURL:url];
[webview loadRequest:req];
它工作正常。但我想启用 pdf 文件中的超链接(就像如何UITextView
检测链接一样)。