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

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, ...

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