---
title: accessoryAction
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewcell/accessoryaction
---

# accessoryAction

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

## Declaration

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

## Discussion

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 property is assigned a value ofUITableViewCell.AccessoryType.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, you may set a target and action through the addTarget(_:action:for:) method. See accessoryView for more information.

## See Also

### Deprecated

- [textLabel](uikit/uitableviewcell/textlabel.md)
- [detailTextLabel](uikit/uitableviewcell/detailtextlabel.md)
- [imageView](uikit/uitableviewcell/imageview.md)
- [initWithFrame:reuseIdentifier:](uikit/uitableviewcell/initwithframe:reuseidentifier:.md)
- [text](uikit/uitableviewcell/text.md)
- [font](uikit/uitableviewcell/font.md)
- [textAlignment](uikit/uitableviewcell/textalignment.md)
- [textColor](uikit/uitableviewcell/textcolor.md)
- [selectedTextColor](uikit/uitableviewcell/selectedtextcolor.md)
- [lineBreakMode](uikit/uitableviewcell/linebreakmode.md)
- [image](uikit/uitableviewcell/image.md)
- [selectedImage](uikit/uitableviewcell/selectedimage.md)
- [hidesAccessoryWhenEditing](uikit/uitableviewcell/hidesaccessorywhenediting.md)
- [target](uikit/uitableviewcell/target.md)
- [editAction](uikit/uitableviewcell/editaction.md)
