QMUINavigationControllerAppearanceDelegate

@protocol QMUINavigationControllerAppearanceDelegate <NSObject>

与 QMUINavigationController 外观样式相关的方法

  • 设置 titleView 的 tintColor

    Declaration

    Objective-C

    - (nullable UIColor *)titleViewTintColor;

    Swift

    optional func titleViewTintColor() -> UIColor?
  • 设置导航栏的背景图,默认为 NavBarBackgroundImage

    Declaration

    Objective-C

    - (nullable UIImage *)navigationBarBackgroundImage;

    Swift

    optional func navigationBarBackgroundImage() -> UIImage?
  • 设置导航栏底部的分隔线图片,默认为 NavBarShadowImage,必须在 navigationBar 设置了背景图后才有效(系统限制如此)

    Declaration

    Objective-C

    - (nullable UIImage *)navigationBarShadowImage;

    Swift

    optional func navigationBarShadowImage() -> UIImage?
  • 设置当前导航栏的 barTintColor,默认为 NavBarBarTintColor

    Declaration

    Objective-C

    - (nullable UIColor *)navigationBarBarTintColor;

    Swift

    optional func navigationBarBarTintColor() -> UIColor?
  • 设置当前导航栏的 barStyle,默认为 NavBarStyle

    Declaration

    Objective-C

    - (UIBarStyle)navigationBarStyle;

    Swift

    optional func navigationBarStyle() -> UIBarStyle
  • 设置当前导航栏的 UIBarButtonItem 的 tintColor,默认为NavBarTintColor

    Declaration

    Objective-C

    - (nullable UIColor *)navigationBarTintColor;

    Swift

    optional func navigationBarTintColor() -> UIColor?
  • 设置系统返回按钮title,如果返回nil则使用系统默认的返回按钮标题。当实现了这个方法时,会无视配置表 NeedsBackBarButtonItemTitle 的值

    Declaration

    Objective-C

    - (nullable NSString *)backBarButtonItemTitleWithPreviousViewController:
        (nullable UIViewController *)viewController;

    Swift

    optional func backBarButtonItemTitle(withPreviousViewController viewController: UIViewController?) -> String?