Monday, January 4, 2016

Delegate methods: UIPickerView

Providing Counts for the Picker View
– numberOfComponentsInPickerView:
– pickerView:numberOfRowsInComponent:

Delegate - 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:viewForRow:forComponent:reusingView:

Responding to Row Selection
– pickerView:didSelectRow:inComponent: