Inherits from UISlider
Declared in JOESlider.h

Overview

JOESlider is a basic subclass of UISlider, used to select a value from a continuous range of values. This is a base class for further implementations such as JOEStopSlider and the like.

Tasks

Properties

  •   animated

    Boolean indicating whether the slider should be animated when its value programmatically changes

    property
  •   animating

    Boolean indicating whether the slider is currently animating its value

    property

Creating a JOESlider

Handle Events Using Blocks

  • – handleValueChanged:

    This is a block method that handles the value changed event. This will probably be called in the viewDidLoad method most of the time to configure the slider.

  • – handletouchUp:

    This is a block method that handles the touch up event. This will probably be called in the viewDidLoad method most of the time to configure the slider.

Properties

animated

Boolean indicating whether the slider should be animated when its value programmatically changes

@property (nonatomic, getter=isAnimated, readonly) BOOL animated

Declared In

JOESlider.h

animating

Boolean indicating whether the slider is currently animating its value

@property (nonatomic, getter=isAnimating, readonly) BOOL animating

Declared In

JOESlider.h

Instance Methods

handleValueChanged:

This is a block method that handles the value changed event. This will probably be called in the viewDidLoad method most of the time to configure the slider.

- (void)handleValueChanged:(void ( ^ ) ( int value ))block

Parameters

block

Code block which is passed in a slider value variable.

Declared In

JOESlider.h

handletouchUp:

This is a block method that handles the touch up event. This will probably be called in the viewDidLoad method most of the time to configure the slider.

- (void)handletouchUp:(void ( ^ ) ( int value ))block

Parameters

block

Code block which is passed in a slider value variable.

Declared In

JOESlider.h

initWithFrame:

The designated initializer when using JOESlider in code.

- (instancetype)initWithFrame:(CGRect)frame

Parameters

frame

Used to size and position the control.

Return Value

Returns a JOESlider object.

Declared In

JOESlider.h