Changes

Jump to: navigation, search

Working with Directories on iPhone OS

39 bytes added, 19:10, 18 May 2010
Identifying the Documents Directory
When executed within the iPhone simulator environment, the path returned will take the form of:
<pre>
/Users/<user name>/Library/Application Support/iPhone Simulator/User/Application/<app id>/Documents
</pre>
Where ''<user name>'' is the name of the user currently logged into the Mac OS X system on which the simulator is running and ''<app id>'' is the unique ID of the app, for example:
<pre>
06A3AEBA-8C34-476E-937F-A27BDD2E450A
</pre>
Clearly this references a path on your Mac OS X system so feel free to open up a Finder window and explore the file system sandbox areas for your applications.
When executed on a physical iPhone device, the path returned by the function call will take the following form:
<pre>
/var/mobile/Applications/<app id>/Documents
</pre>
== Identifying the Temporary Directory ==

Navigation menu