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

iOS Apps are read-only

Back in DrinkMixer, we loaded our application data from a plist by using the application bundle. This worked great and our data loaded without a problem. But remember how we talked about how this would only work in the simulator? It’s time to sort that out. As part of iOS security, applications are installed on the device as read-only. You can access any resources bundled with your application, but you can’t modify them. The Core Data template assumes you’re going to want to read and write to your database, so it doesn’t even bother checking the application bundle. It checks the application documents directory instead.

image with no caption

Let’s take a closer look at how those directories are set up...


  

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