Displaying PDF content in UITextView

老子叫甜甜 提交于 2020-01-06 12:28:39

问题


MY apps deals with PDF.Here I want to display the PDF content in my app.I can display the contents in UIWebView.Is it possible to diaplay the PDF content in the UITextView..I have added PDF in my resource folder....


回答1:


Short answer no, you cannot display a PDF file inside a UITextView, this class is made to display text with format. Though you can add the UIWebView with the PDF as a subview to the UITextView.



来源:https://stackoverflow.com/questions/7467306/displaying-pdf-content-in-uitextview

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