iOS - 如何访问设备的文件库? [英] iOS - How to access the device's file library?

查看:141
本文介绍了iOS - 如何访问设备的文件库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一个应用程序,可以打开任何pdf存储在设备上,我真的不知道如何得到这些文件的句柄。我搜索了文档,我发现每个类都假定我已经有了一个文件句柄。

必须有一些我在这里丢失的东西。有几个应用程序可以访问音频和图片文件。当然,必须有一种方法来访问PDF文件吗?苹果公司并没有真正授予您存储在设备上的任何pdf的权限。您需要通过 iTunes获取文件共享外部服务器,或通过自定义的 URL方案


I'm trying to build an app that can open any pdf stored on the device and I really have no idea on how to get a handle to these files. I've searched the documentation and every single class that I found assumes that I already have a handle to the file.

There must be something that I am missing here. There are several apps that can access audio and pictures files. Surely there must be a way to access pdf files right?

解决方案

Apple doesn't really give you access to "any pdf stored on the device". You need to either get the file through iTunes sharing, an external server, or get passed the file via a custom URL scheme.

这篇关于iOS - 如何访问设备的文件库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆