【发布时间】:2013-02-11 09:13:30
【问题描述】:
我正在使用以下代码在 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 检测链接的方式一样)。
【问题讨论】:
标签: ios objective-c uiwebview datadetectortypes