Instance Method

initWithTabBarSystemItem:tag:

Creates and returns a new item containing the specified system item.

Declaration

- (instancetype)initWithTabBarSystemItem:(UITabBarSystemItem)systemItem tag:(NSInteger)tag;

Parameters

systemItem

The system item to use as the first item on the tab bar. One of the constants defined in UITabBarSystemItem.

tag

The receiver’s tag, an integer that you can use to identify bar item objects in your application.

Return Value

A newly initialized item containing the specified system item. The item’s target is nil.

Discussion

This method returns a system-supplied tab bar item. The title and image properties of the returned item cannot be changed later.

See Also

Initializing an Item

- initWithTitle:image:tag:

Creates and returns a new item using the specified properties.

- initWithTitle:image:selectedImage:

Creates and returns a new item with the specified title, unselected image, and selected image.

- init

Initializes the tab bar item to its default state.

UITabBarSystemItem

System items that can be used on a tab bar.