Writing iPhone App Episode 5: Persisting Data and Reordering Table Rows

Posted in Databases, Mobile on November 13, 2008


Writing iPhone App Episode 5: Persisting Data and Reordering Table Rows

When you quit an iPhone application and restart it later, you want important data to be preserved. In this episode, we’ll save our recipes and their ingredients in a SQLite database. Then we’ll add the ability to reorder ingredients and save their order back to the database. You’ll learn about:

  • creating a SQLite database
  • persisting data to a SQLite database
  • using basic SQL statements
  • how to reorder table rows
  • limiting which rows are reorderable
  • restricting where rows can be repositioned
  • preserving row order in the database

Watch Video

Tags: Databases, Objective-C, iPhone, The Pragmatic Programmers, Xcode, sdk, Writing iPhone App, Interface Builder, SQLite