Search code examples
iosiphonensfilemanager

is it possible to browse files from my iphone application placed at any location in the device?


I wanted to browse iPhone device for files like text,pdf,images etc. like in android we can browse in memory card to upload or attach files. But for iPhone, i searched a lot but i didn't find any solution to do this.


Solution

  • For regular device, the answer is NO.

    Every app in iOS runs on its sandbox environment. Your app can't see any data placed outside of the sandbox.

    For security reasons, iOS places each app (including its preferences and data) in a sandbox at install time. A sandbox is a set of fine-grained controls that limit the app’s access to files, preferences, network resources, hardware, and so on. As part of the sandboxing process, the system installs each app in its own sandbox directory, which acts as the home for the app and its data.

    For jailbroken device, it will break the snadbox environment. So it may be possible to access any files in your device.