https://github.com/mengxianliang/xlnavigationbar
An navigationBar appearance config tool.
https://github.com/mengxianliang/xlnavigationbar
navigation navigationbar
Last synced: about 1 year ago
JSON representation
An navigationBar appearance config tool.
- Host: GitHub
- URL: https://github.com/mengxianliang/xlnavigationbar
- Owner: mengxianliang
- License: mit
- Created: 2020-05-21T09:18:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T02:12:15.000Z (about 6 years ago)
- Last Synced: 2025-04-12T06:53:13.040Z (about 1 year ago)
- Topics: navigation, navigationbar
- Language: Objective-C
- Homepage:
- Size: 1.15 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XLNavigationBar
## Example
| Weibo | Douyin |
| ---- | ---- |
|||
## Installation
To integrate XLNavigationBar into your Xcode project using CocoaPods, specify it in your Podfile:
```ruby
pod 'XLNavigationBar'
```
## 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
```objc
//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
```objc
//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
Zoom header [XLZoomHeader](https://github.com/mengxianliang/XLZoomHeader)
UI tools [XLUIKit](https://github.com/mengxianliang/XLUIKit)