xcodepdfios6epub

Download .epub or .pdf file from a URL into ios device using xcode 4.6


I am new here, please help me. I want to download .epub or .pdf from a given url (eg: www.example.com./file.pdf ) and store it into my iOS device with specific name (integer), if I want open that book I can be able to check whether it is the book I want or not.


Solution

  • There are several solutions available to this if you google properly.

    But anyways, you can use https://github.com/AFNetworking/AFNetworking or also https://github.com/pokeb/asi-http-request for your purpose.

    There are also some examples you can see and refer to https://github.com/PSPDFKit/PSPDFKit-Demo and https://github.com/steipete/AFDownloadRequestOperation

    For epub reader probably you can follow this link http://ideveloperworld.blogspot.in/2011/02/epub-reader.html