Instance Method

pickerView:widthForComponent:

Called by the picker view when it needs the row width to use for drawing row content.

Declaration

- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component;

Parameters

pickerView

The picker view requesting this information.

component

A zero-indexed number identifying a component of the picker view. Components are numbered left-to-right.

Return Value

A float value indicating the width of the row in points.

See Also

Setting the Dimensions of the Picker View

- pickerView:rowHeightForComponent:

Called by the picker view when it needs the row height to use for drawing row content.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software