---
title: textLabel
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewcell/textlabel
---

# textLabel

The label to use for the main textual content of the table cell.

## Declaration

```swift
var textLabel: UILabel? { get }
```

## Mentioned in

Configuring the cells for your table Filling a table with data

## Discussion

Discussion This property holds the main label of the cell. UITableViewCell adds an appropriate label when you create the cell in a particular cell style. See UITableViewCell.CellStyle for descriptions of the main label in currently defined cell styles. This property is mutually exclusive with a content configuration. Setting a non-nil value for contentConfiguration resets this property to nil.

## See Also

### Related Documentation

- [init(style:reuseIdentifier:)](uikit/uitableviewcell/init(style:reuseidentifier:).md)

### Deprecated

- [detailTextLabel](uikit/uitableviewcell/detailtextlabel.md)
- [imageView](uikit/uitableviewcell/imageview.md)
