Join Todd Perkins for an in-depth discussion in this video Handling note deletions, part of Building a Note-Taking App for iOS 9 with Swift.
- To finish the basic version of our note taking app…that doesn't support the split view,…all we have left to do is handle deletion of notes.…Now if I tab over to our application,…and we look at what we have here,…we can click Edit and hit the Delete button,…and delete notes and hit Done.…The problem with that is that if I run the…application again that, that information is…actually not saved.…
When I load the app up again, that note is still there.…The reason is we only save on the view appearing,…and on transitioning back to the master view.…We don't save when we make edits.…So let's look at how to do that.…We'll scroll down, and if we look at the method,…Commit Editing Style, in my code it…starts on line 99, you'll see objects removeAtIndex,…and tableView deleteRows.…This method is called when we go into delete mode,…and we hit the delete button.…
So we're removing objects from the object's array,…and removing the appropriate table,…and we're removing the appropriate items…from the table view.…In addition to supporting this, we want to support…
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.