6. Loading and Saving Data

This chapter will focus on loading and saving data. We will begin with a brief discussion of iOS’s local file system and then look at how documents can be shared across multiple devices using iCloud. We will then expand Health Beat to save and load application data and our user preferences to the cloud. Finally, we will add a custom preferences page to the Settings app, letting us view and change Health Beat’s default settings.

The iOS File System

Always remember, iOS is not a desktop operating system. Some of the things we take for granted on desktop machines are impossible, inappropriate, or at least very difficult in iOS. The file system is a great example of this. Where the desktop often displays dialog boxes to ...

Get Creating iOS 5 Apps: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.