Contents

accessoryAction

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

Declaration

@property (nonatomic) 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 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