Scroll through snippets
All this time, we've been building out our data model and adding ways to input new information. However, we still can't see any of the snippets we've been making! Now it's time to actually let the user see what they've been saving.
The next story is "I want to scroll through my snippets". The tasks that we need to complete are:
Adding a
UITableView
to our first scene, with two prototype cells for theTextSnippet
and thePhotoSnippet
Programming the view controller to display the information from our data array in our
UITableView
To satisfy our user story, we're going to use a UITableView
, which allows us to scroll through cells of data. We're also going to create our own custom cells (called prototype cells) to define a distinct look for both the Text and Photo type cells. Then, we are going to populate the table view with data from our data array.
Create prototype cells
Current task: Add a
UITableView
to our first scene, with two prototype cells for the TextSnippet
...