Importing PDF files to app

…衆ロ難τιáo~ 提交于 2019-12-08 04:20:11

问题


I am trying to import a PDF file from other applications, such as mail, but I'm not sure exactly what I should be looking for. I want my user to be able to tap on the share button in a PDF and my app to be listed there as a place that can accept them, such as "Copy to iBooks"

Any good tutorials? Or suggestions as to what I should look for?

Preferably in Swift

Thanks!


回答1:


You may use Action Extension for making PDF available in your app

Below i have linked Some Tutorials for Action Extension which is not perfect for your requirement but you check the concept and basic implementation for it
Bookmark from Browser
Read a text

Official apple doc




回答2:


You can tell your app which types of documents it will support in the info.plist. A good place to start is Registering the File Types Your App Supports in the iOS documentation.



来源:https://stackoverflow.com/questions/35881269/importing-pdf-files-to-app

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