All Projects → kealdishx → Zsnavigationbar

kealdishx / Zsnavigationbar

Licence: mit
ZSNavigationBar uses category to allow you change UINavigationBar appearance dynamically.(supported iOS 11+ and iPhone X)

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Zsnavigationbar

Depressurizer
A Steam library categorizing tool.
Stars: ✭ 1,008 (+824.77%)
Mutual labels:  category
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
Vanta
Animated 3D backgrounds for your website
Stars: ✭ 1,162 (+966.06%)
Mutual labels:  background
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
Lvthemekit
App 多区域皮肤 UIKit Category
Stars: ✭ 75 (-31.19%)
Mutual labels:  category
Yjcategories
Objective-C 常用分类集合,支持Cocoapods
Stars: ✭ 89 (-18.35%)
Mutual labels:  category
Geolocator
Location tracking & geofencing the easy way. Supports background, killed app, rebooted device different update intervals.
Stars: ✭ 60 (-44.95%)
Mutual labels:  background
Quack
In-Cluster templating for Kubernetes manifests
Stars: ✭ 69 (-36.7%)
Mutual labels:  alpha
Lowpoly
Lowpoly image generator
Stars: ✭ 83 (-23.85%)
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

ZSNavigationBar中文说明

ZSNavigationBar uses category to allow you change UINavigationBar appearance dynamically.(supported iOS 11+)

Installation

CocoaPods

  • Swift:
  1. Add pod 'ZSNavigationBar' to your Podfile.
  2. Run pod install or pod update.
  3. Import ZSNavigationBar.
  • Objective-c:
  1. Add pod 'ZSNavigationBar-oc' to your Podfile.
  2. Run pod install or pod update.
  3. Import ZSNavigationBar.

Manually

  1. Add all files under Source-oc or Source-swift folder.
  2. Link with required frameworks: UIKit.
  3. 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].