Join Todd Perkins for an in-depth discussion in this video Saving data when exiting the detail view, part of Building a Note-Taking App for iOS 9 with Swift.
- Now up to this point, we can't really save…any modified text inside of our detail view.…So let's look at how to do that.…I'll go to my project navigator by clicking the button…in the navigator.…I'll go to DetailViewController.swift.…Now in here I'm going to scroll down…and at the bottom of the existing code,…I'm going to make a new method called saveAndUpdate…and this method has two jobs,…and I bet you can guess what they are.…We're going to call the masterView,…that's our masterViewController.…
We're going to call the save method.…Now when I type a dot after typing masterView…and I start to type in the save,…you'll see that red appear.…And when I finish it, Xcode will automatically add…the question mark for me.…Remember that a question mark unwraps an optional value.…So again we'll call masterView…and what we want to do here is reference its tableView.…So it has a property called tableView…and we want it to reload.…So we're saving the data…and we're updating the tableView.…
So let's go back to MasterViewController.swift…
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.