yrn

YRNavigationBarPure

Global navigation bar pure transition

Showing:

Popularity

Downloads/wk

0

GitHub Stars

63

Maintenance

Last Commit

1yr ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial