iOS Guides | Samples

MonoTouch.UIKit.UITabBarItem Class

An item in a UITabBar.

See Also: UITabBarItem

Syntax

[MonoTouch.Foundation.Register("UITabBarItem", true)]
public class UITabBarItem : UIBarItem, IDisposable

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UITabBarItem are listed below.

See Also: UIBarItem

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Creates a UITabBarItem item that contains a UITabBarSystemItem item and has the integer value of tag, and then returns the new UITabBarItem item.
Creates a UITabBarItem item that has the title and images to display for selected and unselected states, and then returns the new UITabBarItem item.
Creates a UITabBarItem item that has the title and an image to display, and then returns the new UITabBarItem item.

Public Properties

[read-only]
static
AppearanceUITabBarItem+UITabBarItemAppearance. Strongly-typed property that returns the UIAppearance class for this class.
BadgeColorUIColor. The UIColor of the badge. If null, the badge color is set by the system.
BadgeValueString. Displayed in a red oval in the upper right of the UITabBarItem.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
override
EnabledBoolean. Text displayed in the upper-right corner of the item, surrounded by a red oval.
[read-only]
FinishedSelectedImageUIImage. App devs should use SelectedImage rather than this deprecated method.
[read-only]
FinishedUnselectedImageUIImage. App devs should not use this deprecated method.
override
ImageUIImage. The image displayed by this UITabBarItem.
override
ImageInsetsUIEdgeInsets. The insets to be used with the Image.
SelectedImageUIImage. The image displayed when the UITabBarItem is selected.
override
TagInt32. A developer-meaningful integer that can be used to identify particular bar items.
override
TitleString. The title displayed on the item.
TitlePositionAdjustmentUIOffset. The offset used to adjust the title position.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UITabBarItem+UITabBarItemAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance(UITraitCollection) : UITabBarItem+UITabBarItemAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance(UITraitCollection, params Type[]) : UITabBarItem+UITabBarItemAppearance
Returns an appearance proxy for the specified traits when found in the containers containment hierarchy.
static
GetAppearance<T>() : UITabBarItem+UITabBarItemAppearance
Obtains the appearance proxy UITabBarItemAppearance for the subclass of UITabBarItem.
static
GetAppearance<T>(UITraitCollection) : UITabBarItem+UITabBarItemAppearance
Obtains the appearance proxy UITabBarItemAppearance for the subclass of UITabBarItem.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UITabBarItem+UITabBarItemAppearance
Obtains the appearance proxy UITabBarItemAppearance for the subclass of UITabBarItem that has the specified trait collection when the view is hosted in the specified hierarchy.
GetBadgeTextAttributes(UIControlState) : UIStringAttributes
Gets the UIStringAttributes that the badge will have for the specified state.
SetBadgeTextAttributes(UIStringAttributes, UIControlState)
Configures the badge so that when it is in the given state, it has the provided textAttributes.
SetFinishedImages(UIImage, UIImage)
App devs should use UIImageRenderingMode.AlwaysOriginal instead of this deprecated method.