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 ...
Get Learning Xcode 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.