Package apple.uikit.protocol
Interface UIPickerViewDelegate
-
- All Known Subinterfaces:
UIPickerViewAccessibilityDelegate
public interface UIPickerViewDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NSAttributedStringpickerViewAttributedTitleForRowForComponent(UIPickerView pickerView, long row, long component)attributed title is favored if both methods are implementeddefault voidpickerViewDidSelectRowInComponent(UIPickerView pickerView, long row, long component)default doublepickerViewRowHeightForComponent(UIPickerView pickerView, long component)default java.lang.StringpickerViewTitleForRowForComponent(UIPickerView pickerView, long row, long component)these methods return either a plain NSString, a NSAttributedString, or a view (e.g UILabel) to display the row for the component.default UIViewpickerViewViewForRowForComponentReusingView(UIPickerView pickerView, long row, long component, UIView view)default doublepickerViewWidthForComponent(UIPickerView pickerView, long component)returns width of column and height of row for each component.
-
-
-
Method Detail
-
pickerViewAttributedTitleForRowForComponent
default NSAttributedString pickerViewAttributedTitleForRowForComponent(UIPickerView pickerView, long row, long component)
attributed title is favored if both methods are implemented
-
pickerViewDidSelectRowInComponent
default void pickerViewDidSelectRowInComponent(UIPickerView pickerView, long row, long component)
-
pickerViewRowHeightForComponent
default double pickerViewRowHeightForComponent(UIPickerView pickerView, long component)
-
pickerViewTitleForRowForComponent
default java.lang.String pickerViewTitleForRowForComponent(UIPickerView pickerView, long row, long component)
these methods return either a plain NSString, a NSAttributedString, or a view (e.g UILabel) to display the row for the component. for the view versions, we cache any hidden and thus unused views and pass them back for reuse. If you return back a different object, the old one will be released. the view will be centered in the row rect
-
pickerViewViewForRowForComponentReusingView
default UIView pickerViewViewForRowForComponentReusingView(UIPickerView pickerView, long row, long component, UIView view)
-
pickerViewWidthForComponent
default double pickerViewWidthForComponent(UIPickerView pickerView, long component)
returns width of column and height of row for each component.
-
-