Table view cells are customized similarly to collection view cells. See the key differences in this video, and improve your skills working with table views in iOS.
- [Narrator] While we've looked at table views in the past…we haven't yet discussed customizing a table view cell…and that's an important topic to talk about…when discussing IOS development.…So let's do that.…The first thing I'm going to do…is select DetailViewController.swift,…and press Command N to create a new file below that file.…I'll choose Cocoa Touch Class under IOS and hit Next.…And then I'm going to subclass UITableViewCell,…we'll keep the default name and then hit Next.…
Press Return to create the file and there it is.…Now let's go over to the story board.…In the story board, find the table view.…In the table view, select the cell.…If you have trouble selecting it, use the document outline.…Open up the inspector area,…and head over to the identity inspector.…And there, click in the class field…and type table view cell…and hit Return once you see that text in there.…
Now we've successfully associated the cell…with our custom class.…With the cell still selected,…head over to the attributes inspector…and change the style to custom.…
- Advanced UI controls
- Creating alert controllers
- Displaying web content
- Creating a collection view controller
- Creating a custom data type
- Creating tabbed apps
- Importing and setting icons for your apps
- Publishing your app to the App Store
Skill Level Beginner
iOS and watchOS App Development: Notificationswith Steven Lipton3h 45m Intermediate
1. Mastering Views
2. Display Web Content
3. Collection Views
4. Multi-View Templates
5. Publish an App
Next steps1m 21s
- 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.