Join Todd Perkins for an in-depth discussion in this video Saving and loading persistent data, part of Building a Note-Taking App for iOS 9 with Swift.
- Now let's save our data to persistent storage.…First we'll look at our app in the simulator.…When I tap the "Plus" button I see that "New Note" is added.…In our code we did that inside of…the "Insert New Object" method.…So it says, on line 46, "objects.insert(BLANK_NOTE"…and then on line 48, insert the row into the table.…Each time I click the "Plus" button I see a "New note" added…and I can click on the note and I can actually click…and type text to edit the note.…
But when I click back, then the note is not actually saved.…Let's look at saving data to persistent storage…and when we do the only that result we're going to get,…since we're not saving any edits at this point,…is that we'll just see four or three,…or however many new notes were saved,…when we save and reload the data…upon launching the application again.…Let's go back to our code and I'm going to scroll down…all the way to the bottom, right below this…"override tableView commitEditingStyle" method…and I'm going to create a "Save" method and a "Load" method.…
Building a Note-Taking App for Android and Building a Note-Taking App for Windows Phone 8 and Windows Store use the same assets. Compare and contrast the steps and discover the similarities and differences between the three platforms.
Skill Level Intermediate
Building a Note-Taking App for Android (2013)with David Gassner3h 7m Intermediate
1. Project Overview
2. Understanding iOS Specifics
3. Getting Started
4. Creating the Basic App
5. Supporting a Split View
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.