Once you have a table, you can use it to look up information. Select data in a table and use it to look up values not found in the table.
- [Narrator] You have a working table,…but no way to select it.…In this lesson,…I'll show you the table method…used to select a table.…Go ahead and close the app.…Head back to the interface storyboard…and get a label.…Drag it above the table…and also find a separator.…Drag that between the two.…Change the label text to ice cream…Under number of lines,…change that to zero for the label,…so that we have multiple lines…for what we're going to be doing.…
Rows have groups inside of them,…you can see it right here.…If you want to change the color of a row,…use its group.…In the document outline,…select the group for row.…Change the color of the background to purple.…Close the colors.…Give yourself some room…and open the assistant editor.…Select the ice cream.…Control drag from that label to the code,…making an outlet ice cream.…
Close the assistant editor.…Go to the interface controller dot swift file…and we're going to add another array.…So under let flavors,…I'm going to add one that says what the type of dessert is.…So let dessert types equal…
- 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.