편집

다음을 통해 공유


UITableViewCell.Accessory Property

Definition

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

public virtual UIKit.UITableViewCellAccessory Accessory { [Foundation.Export("accessoryType")] get; [Foundation.Export("setAccessoryType:")] set; }
member this.Accessory : 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 view 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 via AccessoryView then this Accessory property is ignored.

The accessory image cross-fades between normal and editing states if it is set for both states; use the EditingAccessory property to set the accessory type to be displayed in editing mode. 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