开发者

PDF picker -- like a media picker -- is it possible?

开发者 https://www.devze.com 2023-02-02 10:41 出处:网络
I\'ve used MPMediaPickerController to select media items (audio recordings) from the user\'s iPod library. I\'d like to do something similar to select PDF files from the user\'s iBooks app. Is there a

I've used MPMediaPickerController to select media items (audio recordings) from the user's iPod library. I'd like to do something similar to select PDF files from the user's iBooks app. Is there anything similar to MPMediaPickerController for PDFs in iBooks?

I looked through the list of SDK frameworks and did some Google searches and didn't find anything, but I'm still hoping it e开发者_运维问答xists...


I should have asked my question more broadly, because I really just want to give the user the ability to load PDF files onto the device and then select them from within my app. They don't have to go through iBooks, I just thought that would be the easiest way to get PDFs onto the app.

Anyway, I just discovered the UIFileSharingEnabled option, which lets users copy documents directly to my application via iTunes. Once the files are copied onto the device, my app can find them using NSFileManager (the documentation has some good code samples). So that's what I'm doing now and it works great.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号