Instance Method

setMinimumTrackImage:forState:

Assigns a minimum track image to the specified control states.

Declaration

- (void)setMinimumTrackImage:(UIImage *)image forState:(UIControlState)state;

Parameters

image

The minimum track image to associate with the specified states.

state

The control state with which to associate the image.

Discussion

Because the movement of the slider’s thumb changes the width of the area occupied by the minimum track image, the image width must change accordingly. To accommodate this requirement, specify track images as stretchable images that can grow or shrink to fill the available space. For information about how to create stretchable images, see UIImage.

When you specify a custom minimum track image, the slider ignores the custom minimum track tint color, if any.

See Also

Changing the Slider’s Appearance

minimumValueImage

The image representing the slider’s minimum value.

maximumValueImage

The image representing the slider’s maximum value.

minimumTrackTintColor

The color used to tint the default minimum track images.

currentMinimumTrackImage

The minimum track image currently being used to render the slider.

- minimumTrackImageForState:

Returns the minimum track image associated with the specified control state.

maximumTrackTintColor

The color used to tint the default maximum track images.

currentMaximumTrackImage

Contains the maximum track image currently being used to render the slider.

- maximumTrackImageForState:

Returns the maximum track image associated with the specified control state.

- setMaximumTrackImage:forState:

Assigns a maximum track image to the specified control states.

thumbTintColor

The color used to tint the default thumb images.

currentThumbImage

The thumb image currently being used to render the slider.

- thumbImageForState:

Returns the thumb image associated with the specified control state.

- setThumbImage:forState:

Assigns a thumb image to the specified control states.