Protocol

UIPicker​View​Data​Source

The UIPicker​View​Data​Source protocol must be adopted by an object that mediates between a UIPicker​View object and your application’s data model for that picker view. The data source provides the picker view with the number of components, and the number of rows in each component, for displaying the picker view data. Both methods in this protocol are required.

Symbols

Providing Counts for the Picker View

func number​Of​Components(in:​ UIPicker​View)

Called by the picker view when it needs the number of components.

func picker​View(UIPicker​View, number​Of​Rows​In​Component:​ Int)

Called by the picker view when it needs the number of rows for a specified component.

Relationships

Inherits From