Instance Method

viewForRow:forComponent:

Returns the view used by the picker view for a given row and component.

Declaration

- (UIView *)viewForRow:(NSInteger)row forComponent:(NSInteger)component;

Parameters

row

The zero-indexed number of a row of the picker view.

component

The zero-indexed number of a component of the picker view.

Return Value

The view provided by the delegate in the pickerView:viewForRow:forComponent:reusingView: method. Returns nil if the specified row of the component is not visible or if the delegate does not implement pickerView:viewForRow:forComponent:reusingView:.