Git Product home page Git Product logo

yrnavigationbarpure's Introduction

YRNavigationBarPure 中文介绍

All UIViewControllers use the same UINavigationBar as child controllers of UINavigationControler. The setting of UIViewController determines the transition effect of UINavigationBar when pushing or poping. when one of the UIviewcontrollers sets the uinavigationbar to hidden , sometimes this transition effect is not so friendly.

YRNavigationBarPure hides the UINavigationBar through sendSubviewToBack:, and generates a screenshot of UINavigationbar for every UIViewController. When pushing or poping happens, the screenshot is added to the view of the UIViewController, so that each UIViewcontroller seems to have an independent UINavigationBar.

Screenshots

Original

YRNavigationBarPure YRNavigationBarPure

Now

Pure Pure

Usage

Two extended properties have been added for UIViewController. You need to complete the navigation bar's settings in viewDidLoad. You only need to focus on the navigation bar style of the current UIViewController without worrying about restoring settings. YRNavigationBarPure will manage all this.

yr_prefersNavigationBarHidden default is NO. Set this property to YES if your UIViewController needs to hide the navigation bar.

self.yr_prefersNavigationBarHidden = YES;

yr_interactivePopDisabled default is NO. Set this property to YES if your UIViewController needs to disable side sliding.

self.yr_interactivePopDisabled = YES;

UINavigationController has one extended a property

yr_allowFullScreenInteractivePop default is NO, set to YES if you need to turn on the full screen swiping back

self.yr_allowFullScreenInteractivePop = YES;

Installtion

To integrate the lastest release version of YRNavigationBarPure into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'YRNavigationBarPure'

Then run commond

$ pod install

Requirements

  • iOS 9.0

License

YRNavigationBarPure is released under the MIT license. See LICENSE for details.

yrnavigationbarpure's People

Contributors

zongmumask 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.