It is a type of UIControl which is used to increase and decrease value. The stepper consists of two buttons. It is associated with a value which gets repeatedly increased or decreased on holding down two of the buttons once at a time. The rate of the change depends on the duration the user presses the control.
We can set the maximum and minimum values for the UIStepper; however, the maximum value will always be greater than the minimum value. If the maximum value lesser than the minimum value, then both these values become equal.
Steps to add Stepper to storyboard
In this example, we are using a label and the UIStepper. It is a simple example, in which the text of the label is changed equivalent to the change in the stepper value.
We have used the label and the UIStepper to create the interface builder shown in the following image.