Instance Method

backgroundImageForBarPosition:barMetrics:

Returns the background image to use for a given bar position and set of metrics.

Declaration

- (UIImage *)backgroundImageForBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics;

Parameters

barPosition

The location of the navigation bar.

barMetrics

The metrics of the navigation bar.

Return Value

The image to use for the specified location and metrics.

Discussion

Resizable images will be stretched vertically, if necessary, for a position of UIBarPositionTopAttached.

See Also

Changing the Background

barTintColor

The tint color to apply to the navigation bar background.

- backgroundImageForBarMetrics:

Returns the background image for given bar metrics.

- setBackgroundImage:forBarMetrics:

Sets the background image for given bar metrics.

- setBackgroundImage:forBarPosition:barMetrics:

Sets the background image to use for a given bar position and set of metrics.

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