转场动画CATransition
2016-05-17 14:49
330 查看
转场动画的类型(NSString *type)
fade
: 交叉淡化过渡
push
: 新视图把旧视图推出去
moveIn
: 新视图移到旧视图上面
reveal
: 将旧视图移开,显示下面的新视图
cube
: 立方体翻滚效果
oglFlip
: 上下左右翻转效果
suckEffect
: 收缩效果,如一块布被抽走
rippleEffect
: 水滴效果
pageCurl
: 向上翻页效果
pageUnCurl
: 向下翻页效果
cameraIrisHollowOpen
: 相机镜头打开效果
cameraIrisHollowClos
: 相机镜头关闭效果
CATransition *anima = [CATransitionanimation];
anima.type =
kCATransitionMoveIn;//设置动画的类型
anima.subtype =
kCATransitionFromRight;
//设置动画的方向
anima.duration =
0.5f;
[self.guideImgV.layer
addAnimation:anima forKey:@"moveInAnimation"];
self.guideImgV.image
= [ResourceHelper
loadImageByTheme:@"GThree"];
相关文章推荐
- Spark1.6内存管理模型设计稿-翻译
- ios 各种证书 详解
- This is usually because the "vboxsf" file system is not available.
- SGU105【找规律】
- bzoj 4597: [Shoi2016]随机序列
- Maven自动生成可运行jar包并将依赖的jar包一起打包
- 235. Lowest Common Ancestor of a Binary Search Tree&&236. Lowest Common Ancestor of a Binary Tree
- Hibernate组件映射
- 架构漫谈(九):理清技术、业务和架构的关系
- I/O 重定向
- iOS多线程编程技术之NSThread、Cocoa NSOperation、GCD
- 代码讲解Android Scroller、VelocityTracker
- wordpress里控制摘要格式
- Masonry框架使用示例(转载)
- inheritprototype原型继承封装及综合继承最简实例
- .xsession-errors:openConnection: connect: No such file or directory cannot connect to brltty at :0
- Matlab和外部文件进行数据交换相关的命令
- Visual Studio调试服务端程序:w3wp进程消失 解决办法
- 请求消息体和响应消息体
- 封装