A toolbar is a control that displays one or more buttons, called toolbar items. A toolbar momentarily highlights or does not change the appearance of an item when tapped.
- iOS 2.0+
Toolbar images that represent normal and highlighted states of an item derive from the image you set using the inherited
image property from the
UIBar class. In iOS 7.0, the image is colored with the toolbar’s
If you need radio button style controls, use the
UITab class instead of
You use the methods listed in Customizing Appearance to customize the appearance of toolbars. You send the setter messages to the appearance proxy (
[UIToolbar appearance]) to customize all toolbars, or to a specific
UIToolbar instance. When a property is dependent on the bar metrics (on iPhone, in landscape orientation bars have a different height from standard), you should typically specify a value for
default as well as for
For more information about appearance and behavior configuration, see Toolbars.