【代码笔记】iOS-动画的跳转

一,工程图。

【代码笔记】iOS-动画的跳转

二,代码。

【代码笔记】iOS-动画的跳转
//点击任何处跳转到页面
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
CATransition* animTrans = [CATransition animation] ;
animTrans.type = kCATransitionFade;
animTrans.duration = 1;
animTrans.timingFunction =[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
[self.navigationController.view.layer addAnimation:animTrans forKey:nil]; FirstViewController *first = [[FirstViewController alloc]init];
[self.navigationController pushViewController:first animated:NO]; }
【代码笔记】iOS-动画的跳转
上一篇:linux 之进程间通信-------------InterProcess Communication


下一篇:[面试算法题]有序列表删除节点-leetcode学习之旅(4)