Giter Site home page Giter Site logo

jtnavigationcontroller's Introduction

JTNavigationController

一个类似网易云音乐和网易新闻页面切换效果的导航控制器.

通过分析网易云音乐实现的一个导航控制器.详情见我的博文

####效果图

####集成方法

#####1. 代码方式 将原来的UINavigationController替换为JTNavigationController即可.

#####2. storyboard方式 修改UINavigationController的class为JTNavigationController

####相关操作

  1. push,pop,popToRoot的操作可以无需作调整,使用self.navigationController的方法就行,popToViewController稍微有些不同,详情见Demo中的代码.

  2. 修改状态栏颜色,用preferredStatusBarStyle或者[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent](需要在info文件中加入View controller-based status bar appearance = NO).

  3. 返回按钮图标设置请修改backButtonImage属性.

  4. 修改barTintColor,增加barButtonItem等导航栏的操作都能放到viewDidLoad中,因为每个控制器都有属于自己的UINavigationController,所以不会影响到其他控制器的导航栏.

  5. 全屏返回手势,fullScreenPopGestureEnable = YES即可开启.

  6. 需要关闭或开启单独一个控制器的全屏返回手势,导入UIViewController+JTNavigationExtension.h头文件并设置self.jt_fullScreenPopGestureEnabled;即可.

jtnavigationcontroller's People

Contributors

ikanam avatar ghxasu avatar wenkyyuan avatar

Watchers

James Cloos avatar  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.