Latest 1.1.3
Homepage https://github.com/aboutlan/XANavBarTransition
License MIT
Platforms ios 8.0, requires ARC
Authors

XANavBarTransitionPod Version License

A simple navigation bar smooth transition library.

Feature

  • Gesture drive full screen push or pop.

  • Support sliding transition to the left or right.

  • Smooth transition of navigation bar.

  • Flexible control mechanism.

Installation

From CocoaPods :pod ‘XANavBarTransition’.

Manually import:
Drag XANavBarTransition folder into your project.
Import the header file:#import "XANavBarTransition.h".

Usage

Initialize in the viewDidLoad method of the controller.

  • If you want to change the navigation bar alpha , please set the property xa_navBarAlpha,the default is 1.

    self.xa_navBarAlpha = 0.5;

  • If you need the push feature, please confirm the transition mode and set the transition delegate object, implementation protocol method, the default is left mode.

    - (void)viewDidLoad {
        [super viewDidLoad];
        self.xa_transitionMode     = XATransitionModeRight;
        self.xa_transitionDelegate = self;
    }   
    
    - (UIViewController *)xa_nextViewControllerInTransitionMode:(XATransitionMode)transitionMode{
        UIViewController *nextVC = [[UIViewController alloc]init]; 
        return  nextVC;
    }
  • The pop feature is enabled by default. If you want to turn off this feature, set xa_isPopEnable property to NO.

    self.xa_isPopEnable = NO;

See demo for details.

XANavBarTransition

Article

Contact

If you have problems during use, please submit an issue to me or @关于岚。Welcome to contact me!

Latest podspec

{
    "name": "XANavBarTransition",
    "version": "1.1.3",
    "summary": "A simple navigation bar smooth transition library",
    "homepage": "https://github.com/aboutlan/XANavBarTransition",
    "license": "MIT",
    "authors": {
        "XangAm": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/aboutlan/XANavBarTransition.git",
        "tag": "1.1.3"
    },
    "source_files": "XANavBarTransition/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This