kealdishx / Zsnavigationbar
Licence: mit
ZSNavigationBar uses category to allow you change UINavigationBar appearance dynamically.(supported iOS 11+ and iPhone X)
Stars: ✭ 109
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Zsnavigationbar
Sonataclassificationbundle
Symfony SonataClassificationBundle
Stars: ✭ 76 (-30.28%)
Mutual labels: category
Cordova Plugin Background Mode
Keep app running in background
Stars: ✭ 1,306 (+1098.17%)
Mutual labels: background
Python Aos Lesson
Python for Atmosphere and Ocean Scientists
Stars: ✭ 49 (-55.05%)
Mutual labels: alpha
Yii2 Console Runner Extension
An extension for running console commands on background in Yii framework.
Stars: ✭ 83 (-23.85%)
Mutual labels: background
Mbprogresshud Bwmextension
Nihility-Ming to MBProgressHUD extension, easy to use.
Stars: ✭ 35 (-67.89%)
Mutual labels: category
React Background Slideshow
Sexy tiled background slideshow for React 🔥
Stars: ✭ 98 (-10.09%)
Mutual labels: background
Geolocator
Location tracking & geofencing the easy way. Supports background, killed app, rebooted device different update intervals.
Stars: ✭ 60 (-44.95%)
Mutual labels: background
Hexo Auto Category
Generate categories automatically for each post in Hexo
Stars: ✭ 49 (-55.05%)
Mutual labels: category
Gradient Screens
🌈 Gradients applied to buttons, texts and backgrounds in Flutter
Stars: ✭ 97 (-11.01%)
Mutual labels: background
Fast Krippendorff
Fast computation of the Krippendorff's alpha agreement measure in Python.
Stars: ✭ 41 (-62.39%)
Mutual labels: alpha
Himawari Bg
🌏 Set the latest image from Himawari 8 as your desktop background.
Stars: ✭ 81 (-25.69%)
Mutual labels: background
Alpha Movie
Android video player with alpha channel (chroma key) support
Stars: ✭ 105 (-3.67%)
Mutual labels: alpha
Xselectorutil
一个可以用代码处理控件的阴影效果,及用代码在TextView、EditText、Button等控件设置selector背景(触摸反馈,样式变化、文字颜色变化、hint文字颜色变化等效果)的组件
Stars: ✭ 98 (-10.09%)
Mutual labels: background
Httptransfertasks
Cross Platform HTTP Transfers for downloading and uploading (supports background operations)
Stars: ✭ 87 (-20.18%)
Mutual labels: background
中文说明
ZSNavigationBarZSNavigationBar uses category to allow you change UINavigationBar appearance dynamically.(supported iOS 11+)
Installation
CocoaPods
- Swift:
- Add
pod 'ZSNavigationBar'
to your Podfile. - Run
pod install
orpod update
. - Import
ZSNavigationBar
.
- Objective-c:
- Add
pod 'ZSNavigationBar-oc'
to your Podfile. - Run
pod install
orpod update
. - Import
ZSNavigationBar
.
Manually
- Add all files under
Source-oc
orSource-swift
folder. - Link with required frameworks:
UIKit
. - If you use oc version, just import
UINavigationBar+custom.h
.
Requirements
- iOS 8+
- Xcode 9+
- swift 3.0+
- Objective-c
Usage
- Swift:
The category includes several methods that helps to change UINavigationBar's appearance dynamically:
func setCustomBackgroundColor(_ backgroundColor: UIColor)
func setCustomTranslationY(translationY: CGFloat)
func reset()
And usually in viewWillDisappear
, you should call this method to avoid any side effects:
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
self.navigationController?.navigationBar.reset()
}
- Objective-c:
First, import this lib:
#import "UINavigationBar+Custom.h"
The category includes several methods that helps to change UINavigationBar's appearance dynamically
- (void)zs_setBackgroundColor:(UIColor *)backgroundColor;
- (void)zs_setTranslationY:(CGFloat)translationY;
- (void)zs_reset;
And usually in viewWillDisappear
, you should call this method to avoid any side effects:
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[self.navigationController.navigationBar zs_reset];
}
License
ZSNavigationBar is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].