16 Saving, Loading, and Application States
There are many ways to save and load data in an iOS application. This chapter will take you through some of the most common mechanisms as well as the concepts you need for writing to or reading from the filesystem in iOS. Along the way, you will be updating Homepwner so that its data persists between runs (Figure 16.1).
Figure 16.1 Homepwner in the task switcher
Archiving
Most iOS applications are, at base, doing the same thing: providing an interface for the user to manipulate data. Every object in an application has a role in this process. Model objects are responsible ...
Get iOS Programming: The Big Nerd Ranch Guide, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.