Join Todd Perkins for an in-depth discussion in this video Adding notes correctly, part of Building a Note-Taking App for iOS 9 with Swift.
- As it stands now, every time we click the plus button,…a copy of the current note is created.…Let's look at how to fix this issue and add notes properly…when using a split view.…I'll go to MasterViewController.swift…and scroll on down to prepare for segue.…In this method, I'm going to make a simple change.…I'm just going to move this curly brace…up right under currentIndex.…So I'll cut the curly brace…and paste it right under currentIndex.…
And then I'm going to move this object line of code…below the curly brace and change IndexPath.row,…since indexPath is part of this if statment,…to just currentIndex.…And I'll format a little bit.…And that should fix the error.…So when I run the application,…my goal now is to click the button to create a new note.…And when I click the button, I can create a new note…and I see that New Note text.…
And there's my new note.…I can click the other notes.…I can click to create another new note…and click again, and nothing happens,…just like it's supposed to work.…So we fixed that bug, by simply putting…
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
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.