moonbeammm / HHTransition

主流转场动画,无侵入,API简单易用。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

主流转场动画

2019/07/19 push增加卡片效果
121212.gif


1.gif2.gif

3.gif4.gif

5.gif6.gif

7.gif

2018-05-17增加CATransition动画

transitionCube.giftransitionCurl.gif

transitionOgl.giftransitionRipple.gif

transitionSuck.gif

使用方法

1、导入头文件UIViewController+HHTransition

2、调用如下方法,基本只需要一句话,无侵入,API简单易用

        case 0:{
            CircleViewController *circleVC = [CircleViewController new];
            circleVC.isNeedShow = YES;
            [self hh_presentCircleVC:circleVC point:_touchPoint completion:nil];
        }
            break;
        case 1://内部只做背部控制器动画,前台动画自己控制
            [self hh_presentVC:[BackScaleViewController new] type:AnimationStyleBackScale completion:nil];
            break;
        case 2:{
            CircleViewController *circleVC = [CircleViewController new];
            circleVC.isNeedShow = YES;
            [self hh_presentVC:circleVC type:AnimationStyleErect completion:nil];
        }
            break;
        case 3:{//需要重写 hh_transitionAnimationView
            CircleViewController *circleVC = [CircleViewController new];
            circleVC.isNeedShow = YES;
            [self hh_presentVC:circleVC type:AnimationStyleTilted completion:nil];
        }
            break;
        case 4:{//需要重写 hh_transitionAnimationView
            InterScaleViewController *interScale = [InterScaleViewController new];
            interScale.imageName = [UIImage imageNamed:@"1.jpg"];
            [self.navigationController hh_pushViewController:interScale style:AnimationStyleScale];
        }
            break;
        case 5:{
            InterScaleViewController *interScale = [InterScaleViewController new];
            interScale.imageName = [UIImage imageNamed:@"2.jpg"];
            [self.navigationController hh_pushViewController:interScale style:AnimationStyleScale];
        }
            break;
        case 6:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleErect];
            break;
        case 7:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleTilted];
            break;
        case 8:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleBack];
            break;
        case 9:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleCube];
            break;
        case 10:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleSuckEffect];
            break;
        case 11:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleOglFlip];
            break;
        case 12:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleRippleEffect];
            break;
        case 13:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStylePageCurl];
            break;
        case 14:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleCameralIrisHollowOpen];
            break;
        case 15:
            [self.navigationController hh_pushViewController:[TopBackViewController new] style:AnimationStyleTopBack];
            break;

支持cocoapod

target 'MyApp' do
  pod 'HHTransition', '~> 2.0.1'
end

About

主流转场动画,无侵入,API简单易用。

License:MIT License


Languages

Language:Objective-C 98.7%Language:C 0.9%Language:Ruby 0.5%