XLNavigationBar 1.0.0

XLNavigationBar 1.0.0

Maintained by mengxianliang.



  • By
  • mengxianliang

XLNavigationBar

Example:

Weibo Douyin
image image

Usage:

You can config by global or view controller itself, if config both, it will prioritize view controller's config, don't forget set XLNavigationBar enabled at first !

Global Config

//enable XLNavigationBar at first
[XLNavigationBar shareInstance].enabled = YES;
//bar title color
[XLNavigationBar shareInstance].xl_navBarTitleColor = [UIColor blackColor];
//bar title font
[XLNavigationBar shareInstance].xl_navBarTitleFont = [UIFont systemFontOfSize:20];
//bar background color
[XLNavigationBar shareInstance].xl_navBarBackgroundColor = [UIColor whiteColor];
//bar background alpha
[XLNavigationBar shareInstance].xl_navBarBackgroundAlpha= 1;
//bar button color
[XLNavigationBar shareInstance].xl_navBarButtonColor = [UIColor blackColor];
//bar shadow image hidden
[XLNavigationBar shareInstance].xl_navBarShadowImageHidden = NO;
//status bar style
[XLNavigationBar shareInstance].xl_statusBarStyle = UIStatusBarStyleLightContent;
//status bar hidden
[XLNavigationBar shareInstance].xl_statusBarHidden = NO;

ViewController Config

//bar title color
self.xl_navBarTitleColor = [UIColor blackColor];
//bar title font
self.xl_navBarTitleFont = [UIFont systemFontOfSize:20];
//bar background color
self.xl_navBarBackgroundColor = [UIColor whiteColor];
//bar background alpha
self.xl_navBarBackgroundAlpha= 1;
//bar button color
self.xl_navBarButtonColor = [UIColor blackColor];
//bar shadow image hidden
self.xl_navBarShadowImageHidden = NO;
//status bar style
self.xl_statusBarStyle = UIStatusBarStyleLightContent;
//status bar hidden
self.xl_statusBarHidden = NO;

Other

ZoomHeader XLZoomHeader

UI tools XLUIKit