6

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

1 Answers1

3

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:

Wayne Hartman
  • 17,629
  • 5
  • 82
  • 114
  • Hi Wayne, If a pdf file is downloaded using safari it is appeared in iBooks menu automatically. Isn't it possible that I download a pdf using my application and make the pdf file appear automatically in iBooks. If not How can safari do that? – Burak Karasoy Mar 01 '17 at 09:07
  • @BurakKarasoy you will find that Apple often give themselves APIs that we do not have access to... – Wayne Hartman Mar 01 '17 at 13:18
  • thank you Wayne, Safari can access those APIs but we can not ? – Burak Karasoy Mar 01 '17 at 14:10