Class UIPickerView

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class UIPickerView
extends UIView
implements NSCoding
  • Constructor Details

    • UIPickerView

      public UIPickerView()
    • UIPickerView

      protected UIPickerView​(NSObject.Handle h, long handle)
    • UIPickerView

      protected UIPickerView​(NSObject.SkipInit skipInit)
    • UIPickerView

      public UIPickerView​(CGRect frame)
    • UIPickerView

      public UIPickerView​(NSCoder coder)
  • Method Details

    • getDataSource

      public UIPickerViewDataSource getDataSource()
    • setDataSource

      public void setDataSource​(UIPickerViewDataSource v)
    • getDelegate

      public UIPickerViewDelegate getDelegate()
    • setDelegate

      public void setDelegate​(UIPickerViewDelegate v)
    • showsSelectionIndicator

      @Deprecated public boolean showsSelectionIndicator()
      Deprecated.
      Deprecated in iOS 13.0. This property has no effect on iOS 7 and later.
    • setShowsSelectionIndicator

      @Deprecated public void setShowsSelectionIndicator​(boolean v)
      Deprecated.
      Deprecated in iOS 13.0. This property has no effect on iOS 7 and later.
    • getNumberOfComponents

      public long getNumberOfComponents()
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • setModel

      public void setModel​(UIPickerViewModel model)
    • getModel

      public UIPickerViewModel getModel()
    • getNumberOfRows

      public long getNumberOfRows​(long component)
    • getRowSize

      public CGSize getRowSize​(long component)
    • getViewForRow

      public UIView getViewForRow​(long row, long component)
    • reloadAllComponents

      public void reloadAllComponents()
    • reloadComponent

      public void reloadComponent​(long component)
    • selectRow

      public void selectRow​(long row, long component, boolean animated)
    • getSelectedRow

      public long getSelectedRow​(long component)
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.