A control that displays one or more buttons along the bottom edge of your interface.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
class UIToolbar : UIView
Overview
To create toolbar items, use the UIBar
class. To add toolbar items to a toolbar, use the set
method.
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. The image is colored with the toolbar’s tint
.
If you need radio button style controls, use the UITab
class instead of UIToolbar
.
Customizing Appearance
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, you should typically specify a value for UIBar
as well as for landscape
.