Dynamically return the number of notes in the notes array.
Retrieve the correct note based on the index path row and set the note cell's labels with the corresponding data.
We use the method convertToString() that was included in our project to convert our modification time from type Date to String.
Running the App
Let's stop here to run and test our app. If you build and run, you should see the following:
What happened to our notes?
That's right. If you remember, we're now using our notes array in our ListNotesTableViewController to display our notes. Since our array is initialized to be empty, our table view correctly doesn't display any cell.
Next, we've implement the functionality for creating new notes with our Create Note bar button item!
We have placed cookies on your device to ensure that we give you the
best experience on our website.
acknowledge that you have read and understand our
Terms of Service. Your use of
Make School’s Products and Services is subject to these policies and terms.