Xieyupeng520 / AZNavTransitionFast

模仿系统转场效果(为了控制转场时间)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

模仿系统转场效果(为了控制转场时间)

效果预览

push效果对比

push转场对比

慢动作

push转场对比_slow

pop效果对比

pop转场对比

慢动作

pop转场对比_slow

使用方式

已经封装好接口在导航控制器分类中,只需要

#import "UINavigationController+AZPushPopTransition.h"

然后在push和pop的时候分别调用

[self.navigationController pushViewControllerFast:vc animated:YES];
[self.navigationController popViewControllerFastAnimated:YES];

默认速度为0.2s,如果需要修改,可以去AZPushPopTransition.m中修改kTransTime的值。

About

模仿系统转场效果(为了控制转场时间)

License:MIT License


Languages

Language:Objective-C 100.0%