I'm developing a sample app that user can read pdf file, pdf files in my app bundle and i use web view to read these files. Now i want to add a button that allow user click to and copy pdf file to iBooks library, that means when user perform this action, after that, when user opens iBooks app, this PDF file is already available in library of iBooks. Any idea for this problem, plz helps me, thanks alot. PS: i want to make as this link, but i dont want open pdf file immediately in iBooks when user click button, i just want when user open ibooks after that anytime, user can see this pdf book in book shelf

有帮助吗?

解决方案

There is not an API available for directly adding content to iBooks, unfortunately.

How it works is your app uses a UIDocumentInteractionController to present the user with the ability to open the PDF in an application that supports the file type that you specify to the controller. One of those apps would be iBooks, if it is installed on the user's device.

Additional Resources:

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top