Class UINavigationBar

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UIBarPositioning, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class UINavigationBar
extends UIView
implements NSCoding, UIBarPositioning
  • Constructor Details

    • UINavigationBar

      public UINavigationBar()
    • UINavigationBar

      protected UINavigationBar​(NSObject.Handle h, long handle)
    • UINavigationBar

      protected UINavigationBar​(NSObject.SkipInit skipInit)
    • UINavigationBar

      public UINavigationBar​(CGRect frame)
    • UINavigationBar

      public UINavigationBar​(NSCoder coder)
  • Method Details

    • getTitleTextAttributes

      public NSAttributedStringAttributes getTitleTextAttributes()
      Since:
      Available in iOS 5.0 and later.
    • getTitleTextMarkupAttributes

      public CMTextMarkupAttributes getTitleTextMarkupAttributes()
      Since:
      Available in iOS 5.0 and later.
    • getTitleCoreTextAttributes

      public CTAttributedStringAttributes getTitleCoreTextAttributes()
      Since:
      Available in iOS 5.0 and later.
    • setTitleTextAttributes

      public void setTitleTextAttributes​(NSAttributedStringAttributes v)
      Since:
      Available in iOS 5.0 and later.
    • setTitleTextMarkupAttributes

      public void setTitleTextMarkupAttributes​(CMTextMarkupAttributes v)
      Since:
      Available in iOS 5.0 and later.
    • setTitleCoreTextAttributes

      public void setTitleCoreTextAttributes​(CTAttributedStringAttributes v)
      Since:
      Available in iOS 5.0 and later.
    • getBarStyle

      public UIBarStyle getBarStyle()
    • setBarStyle

      public void setBarStyle​(UIBarStyle v)
    • getDelegate

      public UINavigationBarDelegate getDelegate()
    • setDelegate

      public void setDelegate​(UINavigationBarDelegate v)
    • isTranslucent

      public boolean isTranslucent()
    • setTranslucent

      public void setTranslucent​(boolean v)
    • getTopItem

      public UINavigationItem getTopItem()
    • getBackItem

      public UINavigationItem getBackItem()
    • getItems

      public NSArray<UINavigationItem> getItems()
    • setItems

      public void setItems​(NSArray<UINavigationItem> v)
    • prefersLargeTitles

      public boolean prefersLargeTitles()
      Since:
      Available in iOS 11.0 and later.
    • setPrefersLargeTitles

      public void setPrefersLargeTitles​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • getTintColor

      public UIColor getTintColor()
      Overrides:
      getTintColor in class UIView
    • setTintColor

      public void setTintColor​(UIColor v)
      Overrides:
      setTintColor in class UIView
    • getBarTintColor

      public UIColor getBarTintColor()
    • setBarTintColor

      public void setBarTintColor​(UIColor v)
    • getShadowImage

      public UIImage getShadowImage()
    • setShadowImage

      public void setShadowImage​(UIImage v)
    • getTitleTextAttributesDictionary

      public NSDictionary<NSString,​?> getTitleTextAttributesDictionary()
    • setTitleTextAttributesDictionary

      public void setTitleTextAttributesDictionary​(NSDictionary<NSString,​?> v)
    • getLargeTitleTextAttributes

      public NSDictionary<NSString,​?> getLargeTitleTextAttributes()
      Since:
      Available in iOS 11.0 and later.
    • setLargeTitleTextAttributes

      public void setLargeTitleTextAttributes​(NSDictionary<NSString,​?> v)
      Since:
      Available in iOS 11.0 and later.
    • getBackIndicatorImage

      public UIImage getBackIndicatorImage()
    • setBackIndicatorImage

      public void setBackIndicatorImage​(UIImage v)
    • getBackIndicatorTransitionMaskImage

      public UIImage getBackIndicatorTransitionMaskImage()
    • setBackIndicatorTransitionMaskImage

      public void setBackIndicatorTransitionMaskImage​(UIImage v)
    • getStandardAppearance

      public UINavigationBarAppearance getStandardAppearance()
      Since:
      Available in iOS 13.0 and later.
    • setStandardAppearance

      public void setStandardAppearance​(UINavigationBarAppearance v)
      Since:
      Available in iOS 13.0 and later.
    • getCompactAppearance

      public UINavigationBarAppearance getCompactAppearance()
      Since:
      Available in iOS 13.0 and later.
    • setCompactAppearance

      public void setCompactAppearance​(UINavigationBarAppearance v)
      Since:
      Available in iOS 13.0 and later.
    • getScrollEdgeAppearance

      public UINavigationBarAppearance getScrollEdgeAppearance()
      Since:
      Available in iOS 13.0 and later.
    • setScrollEdgeAppearance

      public void setScrollEdgeAppearance​(UINavigationBarAppearance v)
      Since:
      Available in iOS 13.0 and later.
    • getCompactScrollEdgeAppearance

      public UINavigationBarAppearance getCompactScrollEdgeAppearance()
      Since:
      Available in iOS 15.0 and later.
    • setCompactScrollEdgeAppearance

      public void setCompactScrollEdgeAppearance​(UINavigationBarAppearance v)
      Since:
      Available in iOS 15.0 and later.
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • getBarPosition

      public UIBarPosition getBarPosition()
      Specified by:
      getBarPosition in interface UIBarPositioning
    • pushNavigationItem

      public void pushNavigationItem​(UINavigationItem item, boolean animated)
    • popNavigationItem

      public UINavigationItem popNavigationItem​(boolean animated)
    • setItems

      public void setItems​(NSArray<UINavigationItem> items, boolean animated)
    • setBackgroundImage

      public void setBackgroundImage​(UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics)
    • getBackgroundImage

      public UIImage getBackgroundImage​(UIBarPosition barPosition, UIBarMetrics barMetrics)
    • setBackgroundImage

      public void setBackgroundImage​(UIImage backgroundImage, UIBarMetrics barMetrics)
    • getBackgroundImage

      public UIImage getBackgroundImage​(UIBarMetrics barMetrics)
    • setTitleVerticalPositionAdjustment

      public void setTitleVerticalPositionAdjustment​(double adjustment, UIBarMetrics barMetrics)
    • getTitleVerticalPositionAdjustment

      public double getTitleVerticalPositionAdjustment​(UIBarMetrics barMetrics)
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.