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.
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. On UIPickerViewDelegate, you can find the following methods:
Setting the Dimensions of the Picker View
– pickerView:rowHeightForComponent:
– pickerView:widthForComponent:
Setting the Content of Component Rows
The methods in this group are marked @optional. However, to use a picker view, you must implement either the pickerView:titleForRow:forComponent: or the pickerView:viewForRow:forComponent:reusingView: method to provide the content of component rows.
– pickerView:titleForRow:forComponent:
– pickerView:attributedTitleForRow:forComponent:
– pickerView:viewForRow:forComponent:reusingView:
Responding to Row Selection
– pickerView:didSelectRow:inComponent: