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.

Declaration

@protocol UITabBarDelegate

Overview

Send beginCustomizingItems: to a UITabBar object to begin customizing. Implement the methods in Customizing Tab Bars to intervene while a user is customizing a tab bar. The customizing modal view is dismissed when the user taps the Done button on the modal view.

Topics

Customizing Tab Bars

- tabBar:willBeginCustomizingItems:

Sent to the delegate before the customizing modal view is displayed.

- tabBar:didBeginCustomizingItems:

Sent to the delegate after the customizing modal view is displayed.

- tabBar:willEndCustomizingItems:changed:

Sent to the delegate before the customizing modal view is dismissed.

- tabBar:didEndCustomizingItems:changed:

Sent to the delegate after the customizing modal view is dismissed.

- tabBar:didSelectItem:

Sent to the delegate when the user selects a tab bar item.

Relationships

Inherits From

Conforming Types

See Also

Customizing the Tab Bar Behavior

delegate

The tab bar’s delegate object.