A view that is used, typically as a control, on the right side of the cell (normal state).
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var accessoryView: UIView? { get set }
Discussion
If the value of this property is not nil
, the UITable
class uses the given view for the accessory view in the table view’s normal (default) state; it ignores the value of the accessory
property. The provided accessory view can be a framework-provided control or label or a custom view. The accessory view appears in the right side of the cell.
The accessory view cross-fades between normal and editing states if it set for both states; use the editing
property to set the accessory view 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.