Instance Property

delegate

The tab bar’s delegate object.

Declaration

weak var delegate: UITabBarDelegate? { get set }

Discussion

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software