UINavigationController Push动画
来源:互联网 发布:言情男主有残疾知乎 编辑:程序博客网 时间:2024/06/08 22:00
CATransition *animation = [CATransitionanimation];
[animation setDuration:0.5];
[animation setType:@"cube"];
[animation setSubtype:kCATransitionFromBottom];
[animation setTimingFunction:[CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseOut]];
CoreImgViewController *imgC = [[[CoreImgViewControlleralloc] init]autorelease];
[self.navigationController.view.layeraddAnimation:animation forKey:nil];
[self.navigationControllerpushViewController:imgC animated:NO];
关于 CATransition
/* 过渡效果
fade //交叉淡化过渡(不支持过渡方向)
push //新视图把旧视图推出去
moveIn //新视图移到旧视图上面
reveal //将旧视图移开,显示下面的新视图
cube //立方体翻滚效果
oglFlip //上下左右翻转效果
suckEffect //收缩效果,如一块布被抽走(不支持过渡方向)
rippleEffect //滴水效果(不支持过渡方向)
pageCurl //向上翻页效果
pageUnCurl //向下翻页效果
cameraIrisHollowOpen //相机镜头打开效果(不支持过渡方向)
cameraIrisHollowClose //相机镜头关上效果(不支持过渡方向)
*/
/* 过渡方向
fromRight;
fromLeft;
fromTop;
fromBottom;
*/
CATransition *animation = [CATransition animation];
animation.delegate = self;
animation.duration = 0.5f; //动画时长
animation.timingFunction = UIViewAnimationCurveEaseInOut;//时间选择 速度的调整
animation.fillMode = kCAFillModeForwards;
animation.type = @"cube"; //过度效果
animation.subtype = @"formLeft"; //过渡方向
animation.startProgress = 0.0 //动画开始起点(在整体动画的百分比)
animation.endProgress = 1.0; //动画停止终点(在整体动画的百分比)
animation.removedOnCompletion = NO;// 动画完成后是否变回原来的样子默认为YES
[tabbarController.view.layer addAnimation:animation forKey:@"animation"];
- UINavigationController Push动画
- IOS UINavigationController Push 动画
- UINavigationController的push动画效果
- UINavigationController的push动画效果
- UINavigationController自定义,push和pop动画
- UINavigationController自定义,push和pop动画
- iOS 不使用UINavigationController实现Push动画
- iOS开发--不使用UINavigationController实现Push动画
- swift详解之二十七------------自定义UINavigationController的push和pop动画
- UINavigationController及页面跳转、push
- UINavigationController先pop再push
- UINavigationController 自定义动画
- UINavigationController 自定义动画
- 自定义UINavigationController 切换动画
- UINavigationController UIStatusBar 动画隐藏
- UINavigationController push时,页面卡顿
- ios开发:UINavigationController反方向滑动push
- UINavigationController的setViewControllers方法----->>push一组界面
- Theme.Holo.Light详解
- Oracle 存储过程or函数返回结果集
- 介绍FPGA的综合
- Zend Studio 目前公认的最强大的PHP编辑器
- URAL1015,URAL1019
- UINavigationController Push动画
- Ubuntu下安装VMware tools 的解决办法
- Wikioi1080线段树练习
- SVN服务器搭建和使用(一)
- ListView 包含Button 的事件问题
- 牛人博客地址
- SqlServer2008导出的数据库的存放位置
- 收获不止Oracle读书笔记之一:体验物理体系之旅
- HDU--2007 -- 平方和与立方和