Sets the items on the tab bar, optionally animating any changes into position.
- iOS 2.0+
- tvOS 9.0+
The array of
UITabobjects to display.
A Boolean indicating whether changes should be animated. Specify
trueto animate changes or
falseto display the new items without animations. When animations are enabled, the tab bar fades out removed items and fades in new items, adjusting the spacing between items as needed.
Use this method to make changes to the currently visible items at runtime. Calling this method on a tab bar that is managed by a
UITab object raises an exception. When the tab bar is owned by a tab bar controller, use the tab bar controller’s methods to make changes to items.