Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Tab Bars and Core Data: Enterprise ap... > The iPhone’s application structure d...

The iPhone’s application structure defines where you can read and write

For security and stability reasons, iOS locks down the filesystem pretty tight. When an application is installed, the iOS creates a directory under /User/Applications on the device using a unique identifier. The application is installed into that directory, and a standard directory structure is created for the app.

image with no caption

Use the Documents directory to store user data

Since most Core Data applications want to read and write data, the template sets up our Core Data stack to read and write from the Documents directory. An application can figure out where its local directories are by using the NSSearchPathForDirectoriesInDomains, just like the template does in the App Delegate:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial