Table view cells are completely customizable. The issue with table view cell customization is that trying to customize an existing table view cell won't work without the proper settings. This movie demonstrates how to create your own completely custom UITableViewCell subclass and how to apply it to the table view cells in Interface Builder to create cutom cells with any user interface elements you want. It also shows how to make connections between your custom cell's controls and your code.
- [Voiceover] Let's look at creating…completely customized table view cells.…The first step is actually to create…a class that subclasses UITableViewCell.…So I'm going to go to File + New + File,…and then I'm going to choose under iOS Source…Cocoa Touch Class and click Next.…I'm going to name the class CustomCell,…and make sure that it's a subclass of UITableViewCell.…The language is Swift, and then click Next.…
I'll click Create to save the file in the default location,…and there's my custom cell class.…Let's go back to Main.storyboard.…So that's step one in creating your custom table view cell.…Now step two is connect your prototype cell to that class,…so you're going to need to have a prototype cell already,…so you may have had to select your Table View.…Go to the attributes inspector, and make sure you have…Content Dynamic Prototypes and Prototype Cells…set to at least one.…
So here we have our prototype cell,…and I'm going to select it right here…and make sure it says Table View Cell here.…If you don't see that, you can always select the cell…
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?
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.