UINavigationController的push动画效果
2013-11-14 11:19
405 查看
CATransition *transition = [CATransition animation];
transition.duration = kAnimationDuration;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromTop;
transitioning = YES;
transition.delegate = self;
[self.navigationController.view.layer addAnimation:transition forKey:nil];
self.navigationController.navigationBarHidden = NO;
[self.navigationController pushViewController:tableViewController animated:YES];
可是为什么没有翻页等动作呢,即UIViewAnimationTransitionFlipFromRight? transition.type的动作有
Transition Type Description
kCATransitionFade The layer fades as it becomes visible or hidden.
kCATransitionMoveIn The layer slides into place over any existing content.
kCATransitionPush The layer pushes any existing content as it slides into place
kCATransitionReveal The layer is gradually revealed in the direction specified
by the transition subtype.
源地址,之前用过一点,讨论的帖子,mark下。
transition.duration = kAnimationDuration;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromTop;
transitioning = YES;
transition.delegate = self;
[self.navigationController.view.layer addAnimation:transition forKey:nil];
self.navigationController.navigationBarHidden = NO;
[self.navigationController pushViewController:tableViewController animated:YES];
可是为什么没有翻页等动作呢,即UIViewAnimationTransitionFlipFromRight? transition.type的动作有
Transition Type Description
kCATransitionFade The layer fades as it becomes visible or hidden.
kCATransitionMoveIn The layer slides into place over any existing content.
kCATransitionPush The layer pushes any existing content as it slides into place
kCATransitionReveal The layer is gradually revealed in the direction specified
by the transition subtype.
源地址,之前用过一点,讨论的帖子,mark下。
相关文章推荐
- 更改pushViewController和popViewController的动画效果
- navigationController push动画 从下往上,类似于presentView的默认动画效果如何实现
- 自定义Tabbar实现push动画隐藏效果
- 更改pushViewController和popViewController的动画效果
- IOS开动画效果之──实现 pushViewController 默认动画效果(转)
- 更改pushViewController和popViewController的动画效果
- Objective-C改变push、pop动画为模态效果
- 更改pushViewController和popViewController的动画效果
- iOS 自定义转场动画实现小红书的push效果思路以及下雪碎屏等动画的实现
- 自定义Tabbar实现push动画隐藏效果
- 更改pushViewController和popViewController的动画效果
- 自定义Tabbar实现push动画隐藏效果
- push的动画效果
- iOS模态跳转实现push动画效果
- IOS开动画效果之──实现 pushViewController 默认动画效果
- 【iOS学习笔记 15-11-06】简单自定义navigationcontroller push和pop动画效果
- IOS开动画效果之──实现 pushViewController 默认动画效果
- iOS开发push动画效果
- 动画切换效果之push、pop、present、dismiss
- iOS7 pushViewController 动画效果卡顿