Table view row selection triggers an event. This event can be handled by the table view's delegate, rather than its data source. Usually the table view's delegate and data source are the same object. In this movie, see how to respond to the selection of a table view row and see what data you have access to when responding to the event.
- View Offline
- Exercise Files
- [Voiceover] At the beginning of this chapter,…we talked about data sources and delegates for tables.…A data source has information about…what data should be presented in the Table View.…The delegate controls interactivity or events,…what should happen when a row is selected,…what should happen when a row is deleted, et cetera.…Let's look at how to respond to…the selection of a row in a Table View.…Now, you could be continuing on from the last movie…and have this fully customized Table View cell,…but if you're not working in that…and you don't have the exercise files,…you can just use any Table View that you have set up…because this is going to work in any Table View.…
What we want to do is just select the Table View…and then show the utility area…and in here we'll go to the Connections Inspector.…In just the same way that we set the data source,…we can set the delegate.…I'll scroll up a little bit and then I'm going to…drag from that circle next to delegate…on to the View Controller.…That's that yellow circle with the white square inside.…
Interested in developing for Apple Watch or Apple TV? Get a sneak peek in Chapter 9. The course wraps up with a look at the submission process for the App Store.
- Installing Xcode and the iOS SDK
- Creating a simple iOS app
- Creating a basic interaction with a button
- Choosing an object as a first responder
- Creating a user interface with Interface Builder and Auto Layout
- Working with sliders and progress bars
- Creating views to show images and web pages
- Developing responsive layouts with size classes
- Understanding the iOS architecture
- Loading data in table views
- Transitioning between views
- Developing for the iPad, Apple Watch, and Apple TV
- Submitting apps to the App Store
Skill Level Beginner
1. Prepare to Develop an iOS App
2. Core Skills
3. Basic iOS UI
4. More UI Objects
5. Size Classes
6. iOS Application Architecture
7. Table Views
8. Multiple-View Applications
9. iPad, Watch, and Apple TV Development
10. Finish and Submit to the App Store
Next steps2m 10s
- 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.