CATranstion动画
2015-07-31 22:32
399 查看
// 1.创建过度动画 CATransition *anima = [CATransition animation]; // 2.设置动画类型 anima.type = @"cube"; anima.subtype = kCATransitionFromRight; // 3.设置动画时间 anima.duration = 3; anima.startProgress = 0.5; anima.endProgress = 0.8; // 4.添加动画 [self.view.layer addAnimation:anima forKey:nil];
type类型有:
animation.type = kCATransitionFade;
animation.type = kCATransitionPush;
animation.type = kCATransitionReveal;
animation.type = kCATransitionMoveIn;
animation.type = @"cube";
animation.type = @"suckEffect";
// 页面旋转
animation.type = @"oglFlip";
//水波纹
animation.type = @"rippleEffect";
animation.type = @"pageCurl";
animation.type = @"pageUnCurl";
animation.type = @"cameraIrisHollowOpen";
animation.type = @"cameraIrisHollowClose";
相关文章推荐
- php5.4n 长链接 bug
- Android大图片裁剪终极解决方案(上:原理分析)
- Android固定标题栏/底栏方法
- RCFile 结构解析
- MapConrol各基本功能的实现代码
- 狸猫浏览器v2.0功能解析
- python函数中各类参数的讨论
- 实模式与保护模式
- SQL到NoSql
- ( ̄y▽ ̄)~ 智能手机II
- 数据库系统0T1(0):基础概念
- Leetcode #77 Combinations
- 做个mp3播放器mciSendString
- hihocoder 1122最大二分匹配匈牙利算法
- JavaScript实现对P标签的操作
- ActionContext.getContext()的几种用法
- Ubuntu 12.10下用Pidgin(pidgin-lwqq)登录QQ
- ajax实现级联下拉菜单
- JavaScript语言基础(二)
- 云计算在企业中的应用(1)