A_TimerSetPickerController

class A_TimerSetPickerController : A_TimerNavBaseController, UIPickerViewDelegate, UIPickerViewDataSource, UIPickerViewAccessibilityDelegate

This is a special version of the controller that handles a time picker.

  • The enum for the various components of the displayed time

    See more

    Declaration

    Swift

    enum Components : Int
  • Declaration

    Swift

    func pickerView(_ pickerView: UIPickerView, rowHeightForComponent component: Int) -> CGFloat

    Parameters

    pickerView

    The UIPickerView calling this

    rowHeightForComponent

    The 0-based index of the component.

    Return Value

    the height, in display units, of the referenced picker component rows

  • Declaration

    Swift

    func pickerView(_ pickerView: UIPickerView, widthForComponent component: Int) -> CGFloat

    Parameters

    pickerView

    The UIPickerView calling this

    widthForComponent

    The 0-based index of the component.

    Return Value

    the width, in display units, of the referenced picker component

  • Declaration

    Swift

    func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView

    Parameters

    pickerView

    The UIPickerView calling this

    viewForRow

    The 0-based index of the row.

    forComponent

    The 0-based index of the component.

    reusing

    Any view being reused (ignored)

    Return Value

    a UIView, containing the picker cell.

  • Declaration

    Swift

    func numberOfComponents(in _: UIPickerView) -> Int

    Return Value

    3 (always)

  • Declaration

    Swift

    func pickerView(_: UIPickerView, numberOfRowsInComponent inComponent: Int) -> Int

    Parameters

    numberOfRowsInComponent

    The 0-based index of the component.

  • Declaration

    Swift

    func pickerView(_ inPickerView: UIPickerView, accessibilityLabelForComponent inComponent: Int) -> String?

    Parameters

    accessibilityLabelForComponent

    The 0-based index of the component.

    Return Value

    The accessibility label for the given component.