炫酷转场动画-iOS

2019/07/19 push增加卡片效果

121212.gif


炫酷转场动画-iOS_第1张图片
1.gif
炫酷转场动画-iOS_第2张图片
2.gif
炫酷转场动画-iOS_第3张图片
3.gif
4.gif
炫酷转场动画-iOS_第4张图片
5.gif
炫酷转场动画-iOS_第5张图片
6.gif
炫酷转场动画-iOS_第6张图片
7.gif

2018-05-17增加CATransition动画

炫酷转场动画-iOS_第7张图片
transitionCube.gif

炫酷转场动画-iOS_第8张图片
transitionCurl.gif
炫酷转场动画-iOS_第9张图片
transitionOgl.gif
炫酷转场动画-iOS_第10张图片
transitionRipple.gif
炫酷转场动画-iOS_第11张图片
transitionSuck.gif

使用方法

1、导入头文件UIViewController+HHTransition
2、调用如下方法,基本只需要一句话,无侵入,API简单易用

        case 0:
            [self.navigationController hh_presentCircleVC:[CircleViewController new] point:_touchPoint completion:nil];
            break;
        case 1:
            [self.navigationController hh_presentBackScaleVC:[BackScaleViewController new] height:400 completion:nil];
            break;
        case 2:
            [self.navigationController hh_presentErectVC:[CircleViewController new] completion:nil];
            break;
        case 3:{//需要重写 hh_transitionAnimationView
           InterScaleViewController *interScale = [InterScaleViewController new];
            interScale.imageName = [UIImage imageNamed:@"1.jpg"];
            [self.navigationController hh_pushScaleViewController:interScale];
        }
            break;
        case 4:{//需要重写 hh_transitionAnimationView
            InterScaleViewController *interScale = [InterScaleViewController new];
            interScale.imageName = [UIImage imageNamed:@"2.jpg"];
            [self.navigationController hh_pushScaleViewController:interScale];
        }
            break;
        case 5:
            [self.navigationController hh_pushTiltViewController:[CircleViewController new]];
            break;
        case 6:
            [self.navigationController hh_pushErectViewController:[CircleViewController new]];
            break;
        case 7:
            [self.navigationController hh_pushBackViewController:[CircleViewController new]];
            break;
        default:
            break;

下载地址:Github

支持cocoapod

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

你可能感兴趣的:(炫酷转场动画-iOS)