accessoryType
The type of standard accessory view for the cell to use in the table view’s normal state.
Declaration
var accessoryType: UITableViewCell.AccessoryType { get set }Mentioned in
Discussion
The accessory view appears in the right side of the cell in the table view’s normal (default) state. The standard accessory views include the disclosure chevron; for a description of valid accessoryType constants, see UITableViewCell.AccessoryType. The default is UITableViewCell.AccessoryType.none. If a custom accessory view is set through the accessoryView property, the value of this property is ignored. If the cell is enabled and the accessory type is UITableViewCell.AccessoryType.detailDisclosureButton, the accessory view tracks touches and, when tapped, sends the data-source object a tableView(_:accessoryButtonTappedForRowWith:) message.
The accessory-type image cross-fades between normal and editing states if it set for both states; use the editingAccessoryType property to set the accessory type for the cell during editing mode. If this property is not set for both states, the cell is animated to slide in or out, as necessary.