<!--
{
  "availability" : [
    "iOS: 2.0.0 - 3.0.0",
    "iPadOS: 2.0.0 - 3.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewCell/textAlignment",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewCell(py)textAlignment"
  },
  "title" : "textAlignment"
}
-->

# textAlignment

A constant that specifies the alignment of text in the cell.

```
@property (nonatomic) NSTextAlignment textAlignment;
```

## Discussion

If the value of the property is `nil` (the default), the title is left-aligned ([`UITextAlignmentLeft`](/documentation/UIKit/UITextAlignment/UITextAlignmentLeft)). See the descriptions of the [`UITextAlignment`](/documentation/UIKit/UITextAlignment) constants for alternative text alignments.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)