模仿系统转场效果(为了控制转场时间)
效果预览
push效果对比
慢动作
pop效果对比
慢动作
使用方式
已经封装好接口在导航控制器分类中,只需要
#import "UINavigationController+AZPushPopTransition.h"
然后在push和pop的时候分别调用
[self.navigationController pushViewControllerFast:vc animated:YES];
[self.navigationController popViewControllerFastAnimated:YES];
默认速度为0.2s,如果需要修改,可以去AZPushPopTransition.m
中修改kTransTime
的值。