<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewCell/init(style:reuseIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewCell(im)initWithStyle:reuseIdentifier:"
  },
  "title" : "init(style:reuseIdentifier:)"
}
-->

# init(style:reuseIdentifier:)

Initializes a table cell with a style and a reuse identifier and returns it to the caller.

```
init(style: UITableViewCell.CellStyle, reuseIdentifier: String?)
```

## Parameters

`style`

A constant indicating a cell style. See [`UITableViewCell.CellStyle`](/documentation/UIKit/UITableViewCell/CellStyle) for descriptions of these constants.

`reuseIdentifier`

A string used to identify the cell object if it is to be reused for drawing multiple rows of a table view. Pass `nil` if the cell object is not to be reused. You should use the same reuse identifier for all cells of the same form.

## Return Value

An initialized [`UITableViewCell`](/documentation/UIKit/UITableViewCell) object or `nil` if the object could not be created.

## Discussion

This method is the designated initializer for the class. The reuse identifier is associated with those cells (rows) of a table view that have the same general configuration, minus cell content. In its implementation of [`tableView(_:cellForRowAt:)`](/documentation/UIKit/UITableViewDataSource/tableView(_:cellForRowAt:)), the table view’s data source calls the `UITableView` method [`dequeueReusableCell(withIdentifier:)`](/documentation/UIKit/UITableView/dequeueReusableCell(withIdentifier:)), passing in a reuse identifier, to obtain the cell object to use as the basis for the current row.

If you want a table cell that has a configuration different that those defined by `UITableViewCell` for `style`, you must create your own custom cell. If you want to set the row height of cells on an individual basis, implement the delegate method [`tableView(_:heightForRowAt:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:heightForRowAt:)).

---

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)