# What is a UITableView?

So far, we only created static, non-moving views. However, many apps today have views that are scrollable. One way to implement a scrollable view with UIKit is with a `UITableView`.

### What is a UITableView?

A `UITableView` is a subclass of `UIScrollView` which is a view that users can scroll through. We can think of a `UITableView` as a list of data. Each item inside of this list is represented by a view called a `UITableViewCell`. Each cell tends to look very similar to one another but are holding different data.

### Examples of a UITableView

<div><figure><img src="https://1509678725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lwk7443W4ukbAF9S07e%2Fuploads%2F7no5faGAhDD6BlpT9doP%2FUntitled.jpeg?alt=media&#x26;token=3ec16239-08f5-4ed2-8b52-47d21aa71fea" alt="" width="375"><figcaption><p>Spotify Playlist</p></figcaption></figure> <figure><img src="https://1509678725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lwk7443W4ukbAF9S07e%2Fuploads%2FvOPRkrTgGM8DyGDOnGOk%2FUntitled.png?alt=media&#x26;token=5d325ad5-54e9-4609-91d1-ff93cc4d4bf7" alt="" width="375"><figcaption><p>iOS Settings</p></figcaption></figure></div>

### Breaking Down a UITableView

A `UITableView` contains **sections** where each section contains **rows**, and each row being represented by a **cell**. Let’s take a look at Settings:

<figure><img src="https://1509678725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lwk7443W4ukbAF9S07e%2Fuploads%2FXuuv9vkrVQn7BAmdL57g%2FUntitled.png?alt=media&#x26;token=1b42f343-8888-4b07-95ff-c5ec61c0183c" alt=""><figcaption></figcaption></figure>

As we can see, a `UITableView` can contain as many sections as it wants, and each section can contain as many rows as it wants. The rows are represented by a `UITableViewCell` which is a view. In the image above, we can see that each cell looks very similar to one another. Each cell contains a `UIImageView` representing the icon as well as a `UILabel` describing that cell. In the next section of this chapter, we’ll learn how to create these custom cells.
