Instance Property

searchBarStyle

A search bar style that specifies the search bar’s appearance.

Declaration

@property(nonatomic) UISearchBarStyle searchBarStyle;

Discussion

This property can be used together with barStyle. The style UISearchBarStyleMinimal provides no default background color or image but will display one if customized as such.

Custom background and search field images take precedence over this property.

See UISearchBarStyle for possible values. The default value is UISearchBarStyleDefault.

See Also

Display Attributes

barStyle

A bar style that specifies the search bar’s appearance.

barTintColor

The tint color to apply to the search bar background.

tintColor

The tint color to apply to key elements in the search bar.

translucent

A Boolean value that indicates whether the search bar is translucent (YES) or not (NO).