In order to improve performance when using table views, it's important to recycle table view cells. This video shows how to use the required Apple method for optimizing performance with table views by reusing cells.
- Let's say we wanted to populate our TableView…with different data.…So now we have wooooooo on every line…but if we wanted to grab that from some kind…of a data source?…We can do that by creating an array.…So scroll up, right underneath…my class declaration,…I'll go down a few lines, and create…an array of objects.…We'll call this items.…So let items equal square brackets,…and then some items in quotes inside…of the square brackets separated by commas.…
Let's just do item one, item two,…and item three for now.…If you're unfamiliar with arrays,…array is a data structure in code…that is an ordered list of items.…So each item in the array, gets a numeric value…associated with it.…And those values start at zero instead of one.…So it would be zero, one, two.…So each slot in the array has…an associated index number.…
So we can reference those objects…by grabbing items index zero, items index one,…or items index two.…We can also grab how many items are…inside the array by items.count.…So let's scroll down and find TableView…
- Installing and using Xcode
- Working with storyboards
- Working with UI objects and events
- Resizing objects and layouts dynamically
- Coding UI objects such as buttons
- Loading and displaying data in table views
- Testing your iOS app
Skill Level Beginner
1. Xcode Fundamentals
2. Core Skills
3. Responsive UI Design
4. Coding UI Objects
5. Table Views
6. App Flow and Testing
Next steps1m 8s
- 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.