Interface UIPickerViewDelegate

    • 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.