Instance Property


The tab bar’s delegate object.


weak var delegate: UITabBarDelegate? { get set }


Use the delegate to track the selection of tab bar items and to respond to the user customization of the tab bar. The default value of this property is nil.

For more information on how to implement the methods of this protocol, see UITabBarDelegate.

See Also

Customizing the Tab Bar Behavior

protocol UITabBarDelegate

The UITabBarDelegate protocol defines optional methods for a delegate of a UITabBar object. The UITabBar class provides the ability for the user to reorder, remove, and add items to the tab bar; this process is referred to as customizing the tab bar. The tab bar delegate receives messages when customizing occurs.