The Wayback Machine - https://web.archive.org/web/20201014092626/https://github.com/wangzhaomeng/LLNavigationController
Skip to content

This is a subClass Of UINavigationController.本导航条继承UINavigationController,自定义滑动返回手势与滑动动画,同时可自定义过场动画,解决了手势共存时的冲突。在系统类的基础上进行扩展,节约性能,无任何代码耦合度,可随时集成与剥离。支持iOS7以上系统,兼容iOS11,版本稳定。

master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

README.md

我的博客:iOS使用系统的导航栏,自定义滑动返回手势与转场动画<br />

//自定义滑动返回手势与动画

Image text

//自定义转场动画

- (nullable id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC{
    if (operation == UINavigationControllerOperationPush) {//push动画
        if(self.presentTransition){
            Class transition = NSClassFromString(self.presentTransition);
            return [transition new];
        }
    }
    else if (operation == UINavigationControllerOperationPop) {//pop动画
        if(self.dismissTransition){
            Class transition = NSClassFromString(self.dismissTransition);
            return [transition new];
        }
    }
    return nil;
}

About

This is a subClass Of UINavigationController.本导航条继承UINavigationController,自定义滑动返回手势与滑动动画,同时可自定义过场动画,解决了手势共存时的冲突。在系统类的基础上进行扩展,节约性能,无任何代码耦合度,可随时集成与剥离。支持iOS7以上系统,兼容iOS11,版本稳定。

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.