UIPickerView with Toolbar

  • Class creating an UI PickerView with a toolbar. The toolbar has 2 buttons; a ‘Done’ and a ‘Cancel’ button. A protocol is defined so a host class using the ToolbarUIPickerView can become a delegate and implement the didTapDone and didTapCancel methods for handling the 2 toolbar buttons.

    See more

    Declaration

    Swift

    class ToolbarUIPickerView : UIPickerView
  • Delegate protocol for delegate classes to implement

    See more

    Declaration

    Swift

    protocol ToolbarUIPickerViewDelegateProtocol : AnyObject