2019/07/19 push增加卡片效果
2018-05-17增加CATransition動(dòng)畫
使用方法
1赚导、導(dǎo)入頭文件
UIViewController+HHTransition
2轧苫、調(diào)用如下方法剪芍,基本只需要一句話窃爷,無(wú)侵入肴茄,API簡(jiǎn)單易用
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