Instance Property

value

The level of pressure being applied to the button.

Declaration

@property(nonatomic, readonly) float value;

Discussion

If pressure is being applied to the button, then the pressed property is YES and this property indicates the amount of pressure being applied to the button. The pressure value is normalized to a number between 0.0 (minimum pressure) and 1.0 (maximum pressure).

If no pressure is being applied to the button, then the pressed property is NO and this property holds a value of 0.0.

See Also

Reading the Button’s Value

pressed

A Boolean value that indicates whether the button is pressed.