Instance Method

setMaximumVolumeSliderImage:forState:

Assigns a maximum volume slider image to the specified control states.

Declaration

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

Parameters

image

The maximum volume slider image to associate with the specified states.

state

The control state with which to associate the image.

Discussion

The orientation of the track image must match the orientation of the slider control. To facilitate the stretching of the image to fill the space between the thumb and end point, track images are usually defined in three regions. A stretchable region sits between two end cap regions. The end caps define the portions of the image that remain as is and are not stretched. The stretchable region is a 1-point wide area between the end caps that can be replicated to make the image appear longer.

To define the end cap sizes for a slider, assign an appropriate value to the image’s capInsets property. For more information about how this value defines the regions of the slider, see the UIImage.

For a description of slider and thumb images, see Customizing the Volume Slider’s Appearance.

See Also

Customizing the Volume Slider

- maximumVolumeSliderImageForState:

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

- minimumVolumeSliderImageForState:

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

- setMinimumVolumeSliderImage:forState:

Assigns a minimum volume slider image to the specified control states.

- setVolumeThumbImage:forState:

Assigns a thumb image to the specified control states.

- volumeSliderRectForBounds:

Returns the drawing rectangle for the slider’s track.

- volumeThumbImageForState:

Returns the thumb image associated with the specified control state.

- volumeThumbRectForBounds:volumeSliderRect:value:

Returns the drawing rectangle for the volume slider’s thumb image.

volumeWarningSliderImage

The image used to designate the European Union volume limit.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software