有办法访问iphone / ipad中的文件夹(真实设备,没有模拟器)?

问题描述:

有办法访问真实设备(iphone / ipad)文件夹吗?我意识到一个应用程序将一些数据存储在该文件夹中,我想检查一切是否正确。

there's a way to access a real device (iphone/ipad) document folder? I realized an app that store some data in that folder and i wanted to check if all is going in the right way.

对于任何寻找确切答案的人: -

To anyone looking out for the exact answer:-

1.转到项目的plist文件。

1.Go to plist file of your project.

2.添加一行。

3.然后将属性应用程序支持iTunes文件共享的布尔值设置为是。 (键名是 UIFileSharingEnabled

3.Then set the Boolean value of the property "Application supports iTunes file sharing" to "YES". (the key name is UIFileSharingEnabled)

你很高兴。

另请注意,您必须插入设备才能访问复制的文件(以编程方式)。如果您碰巧尝试在计算机*问它...您将无法找到这些文件。

Also note that you have to plugin the device in order to access the copied files (Programmatically). If you happen to go and try to access it on computer .. you wont be able to find the files.