Table view cell data can be loaded in multiple ways. The easiest way to load data can also become inefficient if you have many table view rows in your table views. This movie demonstrates one of the techiques you can use as an Apple developer to make sure table view cells are actually reused and recycled instead of creating them from scratch every time.
- View Offline
- Exercise Files
- [Voiceover] So now we only have six items…in our table view, but imagine if you had…a larger table view with more items.…Imagine that you had a hundred…or a thousand items in your table view.…Imagine that you customized your table view cells…and they have image views in them for icons.…So you have this large amount of items in your table view.…Now, when you have that many items…this method table View, cell For Row At Index Path…needs to be called for each item in your table key.…
So imagine, this method needs to be called…a hundred or a thousand times, each time it needs…to load an image in and each time…it needs to modify a text field.…At a certain point that's going to start…to slow your application down.…The user might open up your app…and have to wait five or ten seconds…for the table view to be populated.…To avoid that problem and easily recycle cells,…you can use one simple method call.…So what I'm going to do is just delete this…UITable View Cell constructor on line 26,…and I'm going to call table View, that's our table…
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.