Interface UIPickerViewDelegate

    • Method Detail

      • pickerViewAttributedTitleForRowForComponent

        @Nullable
        default @Nullable NSAttributedString pickerViewAttributedTitleForRowForComponent​(@NotNull
                                                                                         @NotNull UIPickerView pickerView,
                                                                                         long row,
                                                                                         long component)
        attributed title is favored if both methods are implemented API-Since: 6.0
      • pickerViewDidSelectRowInComponent

        default void pickerViewDidSelectRowInComponent​(@NotNull
                                                       @NotNull UIPickerView pickerView,
                                                       long row,
                                                       long component)
      • pickerViewRowHeightForComponent

        default double pickerViewRowHeightForComponent​(@NotNull
                                                       @NotNull UIPickerView pickerView,
                                                       long component)
      • pickerViewTitleForRowForComponent

        @Nullable
        default @Nullable java.lang.String pickerViewTitleForRowForComponent​(@NotNull
                                                                             @NotNull 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

        @NotNull
        default @NotNull UIView pickerViewViewForRowForComponentReusingView​(@NotNull
                                                                            @NotNull UIPickerView pickerView,
                                                                            long row,
                                                                            long component,
                                                                            @Nullable
                                                                            @Nullable UIView view)
      • pickerViewWidthForComponent

        default double pickerViewWidthForComponent​(@NotNull
                                                   @NotNull UIPickerView pickerView,
                                                   long component)
        returns width of column and height of row for each component.