public class UITabBar extends UIView
NoIntrinsicMetric
Constructor and Description |
---|
UITabBar()
Constructs a default UITabBar object located at (0,0) with 0 weight and 0
height.
|
UITabBar(CGRect rect)
Constructs a UITabBar object initialized with the dimensions and position
specified in the rect parameter and the default cyan background color.
|
Modifier and Type | Method and Description |
---|---|
UIImage |
backgroundImage()
Returns the background image of this tab bar.
|
int |
barStyle()
Returns the style of this tab bar.
|
UIColor |
barTintColor()
Returns the tint color of the tab bar's background.
|
void |
beginCustomizingItems(List<UITabBarItem> items)
Presents a modal view that allows the user to add, remove, and rearrange
items on this tab bar.
|
UITabBarDelegate |
delegate()
Returns the delegate object of the tab bar.
|
boolean |
endCustomizingAnimated(boolean animated)
Dismisses the modal dialog that customizes the tab bar items with the
option to use animation.
|
boolean |
isCustomizing()
Returns a Boolean value that shows if the user is customizing the tab
bar.
|
boolean |
isTranslucent()
Returns a Boolean that shows whether this tab bar is semi-transparent.
|
int |
itemPositioning()
Returns the positioning scheme of the items in this tab bar.
|
List<UITabBarItem> |
items()
Returns the items displayed on this tab bar.
|
double |
itemSpacing()
Returns the inter-item spacing of this tab bar expressed in points.
|
double |
itemWidth()
Returns the width of the center-styled items of the tab bar expressed in
points.
|
void |
layoutSubviews()
Changes the layout of this view's subviews.
|
UIColor |
selectedImageTintColor()
Deprecated.
|
UITabBarItem |
selectedItem()
Returns the currently selected item of the tab bar.
|
UIImage |
selectionIndicatorImage()
Returns the image used for the selection indicator.
|
void |
setBackgroundImage(UIImage backgroundImage)
Sets the background image for this tab bar.
|
void |
setBarStyle(int barStyle)
Sets the style of this tab bar.
|
void |
setBarTintColor(UIColor tintColor)
Sets the background tint color of this tab bar.
|
void |
setDelegate(UITabBarDelegate delegate)
Set the delegate object of this tab bar.
|
void |
setItemPositioning(int UITabBarItemPositioning)
Sets the positioning scheme of the items in this tab bar.
|
void |
setItems(List<UITabBarItem> items)
Set the items on this tab bar without animation.
|
void |
setItems(List<UITabBarItem> items,
boolean animated)
Sets the items on the tab bar, using or not animation during the
transition.
|
void |
setItemSpacing(double itemSpacing)
Sets the inter-item spacing of this tab bar expressed in points.
|
void |
setItemWidth(double itemWidth)
Sets the width of the center-styled items of the tab bar expressed in
points.
|
void |
setSelectedImageTintColor(UIColor selectedImageTintColor)
Deprecated.
|
void |
setSelectedItem(UITabBarItem selectedItem)
Sets as currently selected item of the tab bar the item passed as
parameter.
|
void |
setSelectionIndicatorImage(UIImage selectionIndicatorImage)
Sets the image used for the selection indicator.
|
void |
setShadowImage(UIImage shadowImage)
Sets the shadow image of this tab bar.
|
void |
setTranslucent(boolean translucent)
Sets a Boolean that defines whether this tab bar is semi-transparent.
|
UIImage |
shadowImage()
Returns the shadow image of this tab bar.
|
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, drawRect, frame, gestureRecognizers, heightAnchor, hitTest, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UITabBar()
public UITabBar(CGRect rect)
rect
- CGRect that defines dimension and position of UITabBar.public UIImage backgroundImage()
public void setBackgroundImage(UIImage backgroundImage)
backgroundImage
- The background image.public UIColor barTintColor()
public void setBarTintColor(UIColor tintColor)
tintColor
- Tint color for the background.@Deprecated public UIColor selectedImageTintColor()
@Deprecated public void setSelectedImageTintColor(UIColor selectedImageTintColor)
selectedImageTintColor
- Tint color for the selected tab bar item.public UIImage selectionIndicatorImage()
public void setSelectionIndicatorImage(UIImage selectionIndicatorImage)
selectionIndicatorImage
- Image used for the selection indicator.public UIImage shadowImage()
public void setShadowImage(UIImage shadowImage)
shadowImage
- The shadow image of the tab bar.public boolean isTranslucent()
public void setTranslucent(boolean translucent)
translucent
- TRUE then the tab bar is semi-transparent.public int barStyle()
UIBarStyle
public void setBarStyle(int barStyle)
barStyle
- The style of this tab bar.UIBarStyle
public int itemPositioning()
UITabBarItemPositioning
public void setItemPositioning(int UITabBarItemPositioning)
UITabBarItemPositioning
- The positioning scheme of the items in
this tab bar.UITabBarItemPositioning
public double itemSpacing()
public void setItemSpacing(double itemSpacing)
itemSpacing
- The inter-item spacing of this tab bar expressed in
points.public double itemWidth()
public void setItemWidth(double itemWidth)
itemWidth
- The width of the center-styled items of the tab bar
expressed in points.public UITabBarDelegate delegate()
public void setDelegate(UITabBarDelegate delegate)
delegate
- Tab bar’s delegate object.public void beginCustomizingItems(List<UITabBarItem> items)
items
- The items that can be customized.public boolean endCustomizingAnimated(boolean animated)
animated
- TRUE then animation is used.public boolean isCustomizing()
public List<UITabBarItem> items()
public void setItems(List<UITabBarItem> items)
items
- Items to be displayed on the tab bar.public void setItems(List<UITabBarItem> items, boolean animated)
items
- Items to be displayed on the tab bar.animated
- If true, display items with the transition.public UITabBarItem selectedItem()
public void setSelectedItem(UITabBarItem selectedItem)
selectedItem
- The currently selected item of the tab bar.public void layoutSubviews()
UIView
layoutSubviews
in class UIView
Copyright © 2020. All rights reserved.