标签:
实现的主要代码如下:
CATransition *transition = [CATransition animation];
transition.duration = 1.0f;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = @"cube";
transition.subtype = kCATransitionFromRight;
transition.delegate = self;
[self.navigationController.view.layer addAnimation:transition forKey:nil];
FirstViewController *firstViewController = [[DemoViewController alloc]init];
[self.navigationController pushViewController: firstViewController animated:YES];
其中的动画类型有:
返回按钮的动画实现事件
标签:
原文地址:http://www.cnblogs.com/56ik/p/5134513.html