Edytuj

Udostępnij za pośrednictwem


UITableViewCell.EditingAccessory Property

Definition

The type of standard accessory the cell should use (in its editing state).

public virtual UIKit.UITableViewCellAccessory EditingAccessory { [Foundation.Export("editingAccessoryType")] get; [Foundation.Export("setEditingAccessoryType:")] set; }
member this.EditingAccessory : UIKit.UITableViewCellAccessory with get, set

Property Value

Default value is None.

Attributes

Remarks

If specified, the accessory view appears on the right side of a cell. Standard accessory types include the 'disclosure indicator' right-chevron.

If the accessory type is DetailDisclosureButton (and the cell is enabled) then when tapped it will call the AccessoryButtonTapped(UITableView, NSIndexPath) method. This method is seperate to the RowSelected(UITableView, NSIndexPath) method that is called if the rest of the cell is tapped.

If a custom accessory view is set for the editing state via EditingAccessoryView then this EditingAccessory property is ignored.

The accessory image cross-fades between normal and editing states if it is set for both states; use the Accessory property to set the accessory type to be displayed in the normal state. If an accessory is not defined for both states (normal and editing) the the accessory is animated to slide in or out, as required.

Applies to