The currently selected item on the tab bar.
- iOS 2.0+
- tvOS 9.0+
Use this property to get the currently selected item. If you change the value of this property, the tab bar selects the corresponding item and updates the tab bar’s appearance accordingly. Set the property to
nil to clear the selection.
When an item is selected, the tab bar displays the image in the tab bar item’s
selected property. If the
selected property is set, the tab bar also applies the color in that property to the selected image. To prevent system coloring of an item, provide images using the
UIImage rendering mode.
The default value for this property is