Giter Club home page Giter Club logo

cynavigation's Introduction

CYNavigation


同样做为基础的组件,这个导航控制器我已经用了很久,希望能帮助到你。



一. 功能简介 - Introduction

  • 每个viewController单独维护一个navigationBar
  • 可单独禁止某页返回手势
  • 便捷的UI配置
  • 全屏返回
  • 类似淘票票的转场动画(你可以自定义)

二. 安装 - Installation

方式1:CocoaPods安装
pod 'CYNavigation'
方式2:手动导入
直接将项目中的“CYNavigation”文件夹的源文件 拖入项目中
你可以这样来设置你的NavigationController
#import "CYNavigationController.h"头文件后

/*! 初始化控制器 */
CYNavigationController *nav = [[CYNavigationController alloc]initWithRootViewController:[[ViewController alloc]init]];

/*! 配置默认UI */
[CYNavigationConfig shared].backgroundColor = [UIColor orangeColor];
[CYNavigationConfig shared].fontColor = [UIColor whiteColor];
[CYNavigationConfig shared].leftBtnImageColor = [UIColor redColor];
[CYNavigationConfig shared].borderHeight = 0.5;
[CYNavigationConfig shared].backGesture = ^UIPanGestureRecognizer *{
    return [[UIPanGestureRecognizer alloc]init];
}; //全屏返回
[CYNavigationConfig shared].transitionAnimationClass = NSClassFromString(@"HighlightTransitionAnimation");//凸显的过渡动画
//等.....

/*! 为viewController设置navigationBar */
self.navigationbar = [self standardNavigationbar];
self.navigationbar.title.text = @"首页";
[self.navigationbar.rightBtn setTitle:@"下一页" forState:UIControlStateNormal];
self.navigationbar.rightBtn addTarget:self action:@selector(next) forControlEvents:UIControlEventTouchUpInside];

三.  要求 - Requirements

  • ARC环境. - Requires ARC

四. 更新历史 - Update History

暂无

五. 更多 - More

  • 如果你发现任何Bug 或者 新需求请issue我.

  • 大家一起讨论一起学习进步.

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.