Creates and returns a new item using the specified properties.
- iOS 2.0+
- tvOS 9.0+
The item’s title. If
nil, a title is not displayed.
The item’s image. If
nil, an image is not displayed.
The receiver’s tag, an integer that you can use to identify bar item objects in your application.
Newly initialized item with the specified properties.
The images displayed on the tab bar item are derived from
image. You can specify a different source image for the selected image using the
By default, the actual unselected and selected images are automatically created from the alpha values in the source images. To prevent system coloring, provide images with
If the image is too large to fit on the tab bar, it is clipped to fit. The size of a tab bar image is typically 60 x 60 pixels. See Temporary Views for more information about tab bar icons.