Instance Property

translucent

A Boolean value indicating whether the navigation bar is translucent (YES) or not (NO).

Declaration

@property(nonatomic, assign, getter=isTranslucent) BOOL translucent;

Discussion

The default value is YES. If the navigation bar has a custom background image, the default is YES if any pixel of the image has an alpha value of less than 1.0, and NO otherwise.

If you set this property to YES on a navigation bar with an opaque custom background image, the navigation bar applies a system-defined opacity of less than 1.0 to the image.

If you set this property to NO on a navigation bar with a translucent custom background image, the navigation bar provides an opaque background for the image using black if the navigation bar has UIBarStyleBlack style, white if the navigation bar has UIBarStyleDefault, or the navigation bar’s barTintColor if a custom value is defined.

See Also

Customizing the Bar Appearance

backIndicatorImage

The image shown beside the back button.

backIndicatorTransitionMaskImage

The image used as a mask for content during push and pop transitions.

barStyle

The navigation bar style that specifies its appearance.

barTintColor

The tint color to apply to the navigation bar background.

shadowImage

The shadow image to be used for the navigation bar.

tintColor

The tint color to apply to the navigation items and bar button items.

backgroundImageForBarMetrics:

Returns the background image for given bar metrics.

setBackgroundImage:forBarMetrics:

Sets the background image for given bar metrics.

backgroundImageForBarPosition:barMetrics:

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

setBackgroundImage:forBarPosition:barMetrics:

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