问题
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