GithubHelp home page GithubHelp logo

xiangyangli1314 / jznavigationextension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jazysyu/jznavigationextension

0.0 2.0 0.0 2.12 MB

JZNavigationExtension integrates some convenient features for UINavigationController and easy to use.

License: MIT License

Ruby 1.08% Objective-C 98.92%

jznavigationextension's Introduction

JZNavigationExtension

Version Platform License

JZNavigationExtension integrates some convenient features for UINavigationController.


JZNavigationExtension为UINavigationController集成了许多方便的功能。

Features

Overview

overview

Why JZNavigationExtension?

  • Pop Gesture Works Perfect With UITableView【全屏Pop手势完美匹配UITableView无冲突】
  • Enable or disable property for each view controller conveniently.【简单地针对每一个Controller开关属性】
  • Pushes/Pops a view controller when hides/shows navigation bar display soomthly【当控制器做Push/Pop时无缝、平滑地显隐导航栏】
  • Release some restrictions make your navigation controller stronger【解除一些限制,使你的导航控制器更加强大】
  • Follow Apple's API design principles,uses as natural as system api【遵循Apple Inc的API设计原则,使用就像系统API一样自然】

Usage

To gives you a fullscreen interactivePopGestureRecognizer【打开全屏Pop手势】:

navigationController.jz_fullScreenInteractivePopGestureEnabled = YES;

Set a completion for fullscreen interactivePopGestureRecognizer【全屏Pop手势回调】:

[self.navigationController jz_setInteractivePopGestureRecognizerCompletion:^(BOOL finished) {
        if (finished) {
            // Codes
        }
    }];

To hides navigation bar when the view controller is pushed on to a navigation controller【支持转场隐藏、显示导航栏】:

UIViewController *viewController = [UIViewController new];
viewController.jz_wantsNavigationBarVisible = NO;
[self.navigationController pushToViewController:viewController animated:YES];

To Push/Pop view controller With blocks【导航控制器转场回调】:

[self.navigationController jz_pushViewController:viewController animated:YES completion:^(BOOL finished) {
		///Do any thing
}];

To adjust navigation/tool bar background alpha【调节导航控制器的导航栏、工具条透明度】:

navigationController.jz_navigationBarBackgroundAlpha = yourAlpha;

To change navigation/tool bar size【改变导航控制器的导航栏、工具条大小】:

[navigationController setJz_navigationBarSize:size];

To hide navigation bar background alpha during pop gesture is interactiving【导航栏手势交互时改变导航栏透明度】

UIViewController *viewController = [UIViewController new];
viewController.jz_navigationBarBackgroundHidden = YES;

overview


Change navigation bar tint color by different view controller【导航栏手势交互时改变导航栏颜色】

UIViewController *viewController = [UIViewController new];
viewController.jz_navigationBarTintColor = [UIColor redColor];

overview


Many other features please look up public header files...

NS_AVAILABLE_IOS(7_0)

WIKI

因为许多国内朋友问我的几个API的问题,所以写了一篇文档简单解释了一下,请参考这里 https://github.com/JazysYu/JZNavigationExtension/wiki

Installation

Use cocoapods

pod 'JZNavigationExtension'

Manually

Drag all source files under floder JZNavigationExtension to your project.

jznavigationextension's People

Contributors

jazysyu avatar dongxinb avatar wangruofeng avatar

Watchers

James Cloos avatar yang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.