PAStepper is easy to use replacement for UIStepper control.
Must be numerically less than maximumValue. If you attempt to set a value equal to or greater than maximumValue, the system raises an NSInvalidArgumentException exception.
The default value for this property is 0.
Must be numerically greater than minimumValue. If you attempt to set a value equal to or lower than minimumValue, the system raises an NSInvalidArgumentException exception.
The default value of this property is 100.
Must be numerically greater than 0. If you attempt to set this property’s value to 0 or to a negative number, the system raises an NSInvalidArgumentException exception.
The default value for this property is 1.
When the value changes, the stepper sends the UIControlEventValueChanged flag to its target (see addTarget:action:forControlEvents:). Refer to the description of the continuous property for information about whether value change events are sent continuously or when user interaction ends.
The default value for this property is 0. This property is clamped at its lower extreme to minimumValue and is clamped at its upper extreme to maximumValue.
If YES, value change events are sent immediately when the value changes during user interaction. If NO, a value change event is sent when user interaction ends.
The default value for this property is YES.
If YES, the user pressing and holding on the stepper repeatedly alters value.
The default value for this property is YES.
If autorepeat is YES, the user pressing and holding on the stepper repeatedly alters value by autorepeatIntreval value.
The default value for this property is 0.5.
If YES, incrementing beyond maximumValue sets value to minimumValue; likewise, decrementing below minimumValue sets value to maximumValue. If NO, the stepper does not increment beyond maximumValue nor does it decrement below minimumValue but rather holds at those values.
The default value for this property is NO.
The value of this property is white by default.
The value of this property is black by default.
- (UIImage *)backgroundImageForState:(UIControlState)state
Parameters
- state: The control state in which the image is displayed.
Return Value
- The background image used by the control when it is in the specified state.
setBackgroundImage:forState: - Sets the background image for the control when it is in the specified state.
- (void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state
Parameters
- image: The background image to use for the specified state.
- state: The control state in which you want to display the image.
Note For good results, image must be a stretchable image.
- (UIImage *)decrementImageForState:(UIControlState)state
Parameters
- state: The control state in which the image is displayed.
Return Value
- The image used for the decrement glyph of the control.
setDecrementImage:forState: Sets the background image to use for the decrement glyph of the control.
- (void)setDecrementImage:(UIImage *)image forState:(UIControlState)state
Parameters
- image: The background image to use for the decrement glyph.
- state: The control state in which you want to display the image.
- (UIImage *)incrementImageForState:(UIControlState)state
Parameters
- state: The control state in which the image is displayed.
Return Value
- The image used for the increment glyph of the control.
- (void)setIncrementImage:(UIImage *)image forState:(UIControlState)state
Parameters
- image: The background image to use for the increment glyph.
- state: The control state.