<!--
{
  "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/initWithFrame:reuseIdentifier:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewCell(im)initWithFrame:reuseIdentifier:"
  },
  "title" : "initWithFrame:reuseIdentifier:"
}
-->

# initWithFrame:reuseIdentifier:

Initializes and returns a table cell object.

```
- (id) initWithFrame:(CGRect) frame reuseIdentifier:(NSString *) reuseIdentifier;
```

## Parameters

`frame`

The frame rectangle of the cell. Because the table view automatically positions the cell and makes it the optimal size, you can pass in `CGRectZero` in most cases. However, if you have a custom cell with multiple subviews, each with its own autoresizing mask, you must specify a non-zero frame rectangle; this allows the table view to position the subviews automatically as the cell changes size.

`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.

## 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 delegate 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.

## See Also

[`var reuseIdentifier: String?`](/documentation/UIKit/UITableViewCell/reuseIdentifier)

A string for identifying a reusable cell.



---

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)