Iphone - Cómo leer un archivo de libro desde el dispositivo

I imported pdf file to iphone device using iTunes. I verified that the pdf file stored in 'root/user/media/books' path. Can i read this file in my program?

Is there any way to read the file? Please Help me.

Gracias de antemano.

preguntado el 27 de agosto de 11 a las 15:08

Is your question about how to read a PDF on the iPhone, or if you will be able to access the file in that location? -

The latter. I want to view pdf file that I stored using iTunes. But I don't know the way access this file. I only know the way to read file in my program bundle. Thank for your commenting. -

2 Respuestas

Aquí is a guide on how to view a pdf on the screen. Aquí is a previous post about how to parse a pdf using CGPDFScanner. ¡Espero que ayude!

contestado el 23 de mayo de 17 a las 14:05

I only want to read and access file. I will write file on this location. But implementation for this is too difficult for me. Reading it is further problem. - cyberworld

I don't understand what you mean by "read and access file". Do you mean you want to display the pdf file, or do you want to actually parse the pdf to get access to the strings in code? - msgambel

Thank for your answering. I meant that I can read file in external(device) path, not in my program bundle. - cyberworld

The SDK doesn’t provide any access to the books (including PDFs) in the user’s media library. For your app to read a PDF that was added via iTunes, it needs to be added to your app specifically, using the iTunes file sharing malarkey (look up “UIFileSharingEnabled” for more information on that). You can presentar una solicitud de mejora con Apple to try to get them to add support for accessing the user’s book library, but don’t count on it.

Respondido 27 ago 11, 22:08

Thanks. I want more explanation about them. - cyberworld

Finally, I found the article raywenderlich.com/1948/…. - cyberworld

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.