Hour 17. Using the SQLite Database
In this hour, you’ll learn about data persistence: saving data to a file or a database so that it can be retrieved later. Files are flat data structures without inbuilt indexing capabilities, whereas databases associate data with indexes to enable fast data retrieval.
Saving and Reading Data from Files
The iPhone provides a standard POSIX C API for file access. However, recall that your application runs inside a sandbox, which prevents it from writing to any path. Cocoa Touch provides functions which return the paths you can access. Cocoa Touch also wraps the POSIX C API in a more pleasant ...
Get Sams Teach Yourself Cocoa Touch™ Programming in 24 Hours 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.