Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy PDF file to iBooks library [closed]

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

like image 703
Quang Phạm Công Avatar asked Aug 15 '12 02:08

Quang Phạm Công


Video Answer


1 Answers

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:

  • UIDocumentInteractionController sample application from developer.apple.com
  • UIDocumentInteractionController Class Reference
like image 53
Wayne Hartman Avatar answered Oct 05 '22 23:10

Wayne Hartman