handle links clicking inside PDF viewer on iOS with swift

送分小仙女□ 提交于 2020-05-17 07:01:25

问题


I have an application with PDF viewer that show an existence PDF file. that file has links, some of these links go to websites, and some links go to another pages inside the PDF itself. I use PDFDocument, is there any way to handle the clicking on those links?


回答1:


Implement PDFViewDelegate to PDFVIew. following method in delegate trigger on link click:

- (void)PDFViewWillClickOnLink:(PDFView *)sender withURL:(NSURL *)url

Implement your logic for link handling.



来源:https://stackoverflow.com/questions/61575281/handle-links-clicking-inside-pdf-viewer-on-ios-with-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!