Instance Property

delegate

The delegate for the picker view.

Declaration

weak var delegate: UIPickerViewDelegate? { get set }

Discussion

The delegate must adopt the UIPickerViewDelegate protocol and implement the required methods to return the drawing rectangle for rows in each component. It also provides the content for each component’s row, either as a string or a view, and it typically responds to new selections or deselections.

See Also

Customizing the Picker Behavior

protocol UIPickerViewDelegate

The delegate of a UIPickerView object must adopt this protocol and implement at least some of its methods to provide the picker view with the data it needs to construct itself.