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

# accessoryAction

The selector defining the action message to invoke when users tap the accessory view.

```
@property (nonatomic, nullable) SEL accessoryAction;
```

## Discussion

If you specify a selector for the accessory action, a message is sent only if the accessory view is a detail disclosure button—that is, the cell’s [`accessoryType`](/documentation/UIKit/UITableViewCell/accessoryType-swift.property) property is assigned a value of[`UITableViewCell.AccessoryType.detailDisclosureButton`](/documentation/UIKit/UITableViewCell/AccessoryType-swift.enum/detailDisclosureButton). If the value of this property is `NULL`, no action message is sent.

The accessory view is a `UITableViewCell`-defined control, framework control, or custom control on the right side of the cell. It is often used to display a new view related to the selected cell. If the accessory view inherits from [`UIControl`](/documentation/UIKit/UIControl), you may set a target and action through the [`addTarget(_:action:for:)`](/documentation/UIKit/UIControl/addTarget(_:action:for:)) method. See [`accessoryView`](/documentation/UIKit/UITableViewCell/accessoryView) for more information.

---

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)