<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewCell/StateMask",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITableViewCellStateMask"
  },
  "title" : "UITableViewCell.StateMask"
}
-->

# UITableViewCell.StateMask

Constants used to determine the new state of a cell as it transitions between states.

```
struct StateMask
```

## Overview

The methods that use these constants are [`didTransition(to:)`](/documentation/UIKit/UITableViewCell/didTransition(to:)) and [`willTransition(to:)`](/documentation/UIKit/UITableViewCell/willTransition(to:)).

## Topics

### Constants

[`UITableViewCellStateDefaultMask`](/documentation/UIKit/UITableViewCellStateMask/UITableViewCellStateDefaultMask)

The normal state of a table cell.

[`showingEditControl`](/documentation/UIKit/UITableViewCell/StateMask/showingEditControl)

The state of a table view cell when the table view is in editing mode.

[`showingDeleteConfirmation`](/documentation/UIKit/UITableViewCell/StateMask/showingDeleteConfirmation)

The state of a table view cell that shows a button requesting confirmation of a delete gesture.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UITableViewCell/StateMask/init(rawValue:))

Creates a state mask with the specified raw value.



---

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)