Complete multiple-row types by adding code for generating a rowType array and reading it when creating a table.
- [Instructor] The storyboard side…of the multiple row type ice cream table is now set up.…You have a new row type in the storyboard,…and the outlets controller class…and identifiers in that type are set up correctly.…Now it's time to code.…Head over to interface controller,…and take a look at table refresh.…The core of the multiple row type table is a string array…which lists that row, the row controller used.…
The core of the multiple row type table…is a string array,…which lists for that row the row controller used.…If you go up to our two arrays we have already,…I could make a third array,…and I could call it row types,…and what it would do is it would have the type…of controller named as a string…listing out each one of these.…So I would have, for example,…for vanilla ice cream, I would have photo row controller.…So I'd have an array of photo row controller,…photo row controller, photo row controller,…photo row controller for gelato,…row controller for sorbet,…and row controller for gelato.…
You can do that literally.…
- Principles of watchOS development
- Adding buttons and labels to your app
- Connecting objects to code
- Testing a watchOS app
- Laying out WatchKit UI objects
- Adding navigation
- Using Interface Library elements such as inputs, pickers, and media players
- Creating tables
- Working with table data
Skill Level Intermediate
1. A Look at the Apple Watch App
2. Building Your First Apple Watch App
3. Working with UI in watchOS
5. Interface Library
6. Tables and Scrolling
Next steps1m 57s
- 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.