Database Reference
In-Depth Information
Add four or five names to the list. You should wind up with something like this:
Your table view will display the data and your array will store the names, but the
big thing missing here is persistence . The array is in memory but if you force quit
the app or reboot your device, your hit list will be wiped out.
Core Data provides persistence, meaning it can store data in a more durable state
so that it can outlive an app re-launch or a device reboot.
You haven't added any Core Data yet, so nothing should persist after you navigate
away from the app. Let's test this out. Press the Home button if you're using a
physical device or the equivalent (Shift+ +H) if you're on the Simulator. This will
take you back to the familiar app grid on the home screen:
Search WWH ::




Custom Search