在UITextView中显示PDF内容 [英] Displaying PDF content in UITextView

查看:47
本文介绍了在UITextView中显示PDF内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序处理PDF.在这里我想在我的应用程序中显示PDF内容.我可以在UIWebView中显示内容.是否可以在UITextView中显示PDF内容..我已经在资源文件夹中添加了PDF....

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....

推荐答案

简短回答否,您无法在UITextView中显示PDF文件,该类用于显示具有格式的文本.虽然您可以将带有PDF的UIWebView作为子视图添加到UITextView.

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.

这篇关于在UITextView中显示PDF内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆