NumberPad

@objcMembers public class NumberPad: UIView

UI control for typing numbers.

  • Options for configuring the behavior of the number pad.

    Declaration

    Swift

    public struct Options
  • Button for the 0 value.

    Declaration

    Swift

    @IBOutlet public weak var button0: UIButton?
  • Button for the 1 value.

    Declaration

    Swift

    @IBOutlet public weak var button1: UIButton?
  • Button for the 2 value.

    Declaration

    Swift

    @IBOutlet public weak var button2: UIButton?
  • Button for the 3 value.

    Declaration

    Swift

    @IBOutlet public weak var button3: UIButton?
  • Button for the 4 value.

    Declaration

    Swift

    @IBOutlet public weak var button4: UIButton?
  • Button for the 5 value.

    Declaration

    Swift

    @IBOutlet public weak var button5: UIButton?
  • Button for the 6 value.

    Declaration

    Swift

    @IBOutlet public weak var button6: UIButton?
  • Button for the 7 value.

    Declaration

    Swift

    @IBOutlet public weak var button7: UIButton?
  • Button for the 8 value.

    Declaration

    Swift

    @IBOutlet public weak var button8: UIButton?
  • Button for the 9 value.

    Declaration

    Swift

    @IBOutlet public weak var button9: UIButton?
  • Button for the minus sign symbol.

    Declaration

    Swift

    @IBOutlet public weak var buttonMinusSign: UIButton?
  • Button for the decimal symbol.

    Declaration

    Swift

    @IBOutlet public weak var buttonDecimal: UIButton?
  • Button for deleting a character.

    Declaration

    Swift

    @IBOutlet public weak var buttonBackspace: UIButton?
  • Text field that holds the current number.

    Declaration

    Swift

    @IBOutlet public weak var textField: NumberPadTextField?
  • Flag that determines if this view is using the default number pad.

    Declaration

    Swift

    public let isDefault: Bool
  • Allows use of the minus sign button. Defaults to true.

    Declaration

    Swift

    public var allowMinusSign: Bool = true
  • Allows use of the decimal button. Defaults to true.

    Declaration

    Swift

    public var allowDecimal: Bool = true
  • Returns the displayed text of the number pad.

    Declaration

    Swift

    public var text: String
  • The font to use within the number pad.

    Declaration

    Swift

    public var font: UIFont?
  • Configurable options of the number pad.

    Note

    These values are not used if a custom UI is provided for this control.

    Declaration

    Swift

    public let options: Options
  • Delegate for events that occur on this instance.

    Declaration

    Swift

    public weak var delegate: NumberPadDelegate?
  • Method that is called when the user presses a button.

    Declaration

    Swift

    public func didPressButton(_ button: UIButton)