public interface UIPickerViewDelegate
Modifier and Type | Method and Description |
---|---|
default void |
didSelectRow(UIPickerView view,
int row,
int component)
It is used in order to handle the fact that the user picked a row of a
particular component.
|
default double |
rowHeightForComponent(UIPickerView view,
int component)
It is used in order to get the height of the row of a particular
component for drawing its content.
|
default String |
titleForRow(UIPickerView view,
int row,
int component)
It is used when the title of the row of a particular component is needed.
|
default UIView |
viewForRow(UIPickerView view,
int row,
int component,
UIView reusedView)
It is used in order to display a view in the row of a particular
component.
|
default double |
widthForComponent(UIPickerView view,
int component)
It is used in order to get the width of the row of a particular component
for drawing its content.
|
default double rowHeightForComponent(UIPickerView view, int component)
view
- The picker view that corresponds to this delegate.component
- The component of the picker view defined by its index.default double widthForComponent(UIPickerView view, int component)
view
- The picker view that corresponds to this delegate.component
- The component of the picker view defined by its index.default UIView viewForRow(UIPickerView view, int row, int component, UIView reusedView)
view
- The picker view that corresponds to this delegate.row
- The row of the picker view.component
- The component of the picker view defined by its index.reusedView
- A previously used view for this row.default String titleForRow(UIPickerView view, int row, int component)
view
- The picker view that corresponds to this delegate.row
- The row of the picker view.component
- The component of the picker view defined by its index.default void didSelectRow(UIPickerView view, int row, int component)
view
- The picker view that corresponds to this delegate.row
- The row of the picker view.component
- The component of the picker view defined by its index.Copyright © 2020. All rights reserved.