UITabBarDelegate Protocol Reference
| Conforms to | |
| Framework | /System/Library/Frameworks/UIKit.framework |
| Availability | Available in iOS 2.0 and later. |
| Companion guide | |
| Declared in | UITabBar.h |
Overview
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.
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.
Instance Methods
tabBar:didBeginCustomizingItems:
Sent to the delegate after the customizing modal view is displayed.
Parameters
- tabBar
The tab bar that is being customized.
- items
The items on the customizing modal view.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UITabBar.htabBar:didEndCustomizingItems:changed:
Sent to the delegate after the customizing modal view is dismissed.
Parameters
- tabBar
The tab bar that is being customized.
- items
The items on the customizing modal view.
- changed
YESif the visible set of items on the tab bar changed; otherwise,NO.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UITabBar.htabBar:didSelectItem:
Sent to the delegate when the user selects a tab bar item. (required)
Parameters
- tabBar
The tab bar that is being customized.
- item
The tab bar item that was selected.
Availability
- Available in iOS 2.0 and later.
Declared In
UITabBar.htabBar:willBeginCustomizingItems:
Sent to the delegate before the customizing modal view is displayed.
Parameters
- tabBar
The tab bar that is being customized.
- items
The items on the customizing modal view.
Discussion
Use the beginCustomizingItems: method of UITabBar to display the customizing modal view and begin the customizing mode.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UITabBar.htabBar:willEndCustomizingItems:changed:
Sent to the delegate before the customizing modal view is dismissed.
Parameters
- tabBar
The tab bar that is being customized.
- items
The items on the customizing modal view.
- changed
YESif the visible set of items on the tab bar changed; otherwise,NO.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UITabBar.h© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-05-16)