DejaVu93 / YHTransitionAnimate

自定义转场动画(Custom transition animation)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YHTransitionAnimate

自定义转场动画 (Custom transition animation)

示例图片(The sample picture)

使用方法(Method of use)

ProdDetailViewController *vc = [[ProdDetailViewController alloc] initWithTargetImageName:itemName];
self.navigationController.yh_customAnimation = YES;
self.pushTransitionAnimate = [[YHTransitionAnimate alloc] initWithPushed:^(UIViewController *fromVC, UIViewController *toVC, YHBaseTransitionAnimate *transition) {
        YHTransitionAnimate *move = (YHTransitionAnimate *) transition;
        move.targetClickedView = imageView;
        self.navigationController.yh_customAnimation = NO;
    } poped:^(UIViewController *fromVC, UIViewController *toVC, YHBaseTransitionAnimate *transition) {
    }];
self.navigationController.delegate = self.pushTransitionAnimate;
[self.navigationController pushViewController:vc animated:YES];

About

自定义转场动画(Custom transition animation)

License:MIT License


Languages

Language:Objective-C 100.0%