O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File Data Storage

Like most other operating systems, iOS enables saving data in files, either in regular text files or by archiving (what’s known as serialization in Java and C#). The techniques for working with files are similar to many other programming languages, but it’s worth noting that on iOS, apps are sandboxed, which means that each app is isolated from the other apps and from the operating system. One of the consequences is that each app has only a very simple file system that by default consists of a few standard directories: Documents, Library, and tmp. As a developer, you can store files in the Documents and tmp directories. The Documents folder is backed up when the device is backed up. The tmp folder is not. By storing data in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required