Save Changes to Records

There are some significant issues with the app at this point when it comes to saving data. If you have been running the app, you may have noticed a few things. First, when saving a Contact on the detail editing screen and going back to the table screen, the contact isn’t updated. Second, when the app is launched again, the changed Contact shows up as a new row in the table. There are two issues that cause these problems. The first is in the table view controller where we load the database data in the viewDidLoad: method. This method is executed once when the controller is first instantiated. Moving to the detail screen to make changes and back again to the table doesn’t execute the viewDidLoad: method again. However, ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.