iOS动画
xhl916235259
这个作者很懒,什么都没留下…
展开
-
ios-转场动画
9.30 -(转场动画) //当点击长按手势之后,连续跳转两个界面 就可以通过 if (sender.state == UIGestureRecognizerStateBegan) 判断CATransition 转场动画 可以切换视图 视图控制器 重要属性: type 转场动画的 动画效果 kCATransitionFade 交叉淡化过渡 kCATransit原创 2015-09-30 14:31:17 · 348 阅读 · 0 评论 -
ios-动画组
9.30 动画组CAAnimationGroup/* CAAnimationGroup 1、动画的数组 animations 2、启动的时间 beginTime 动画组设置了持续时间 可能就会导致动画组里面的某一个动画的 持续时间 没响应(失效) */#import "ViewController.h"原创 2015-09-30 14:28:55 · 239 阅读 · 0 评论 -
iOS中各种动画分类
在iOS中核心动画分为几类:基础动画(CABasicAnimation)、关键帧动画(CAKeyframeAnimation)、动画组(CAAnimationGroup)、转场动画(CATransition) CAAnimation:核心动画的基础类,不能直接使用,负责动画运行时间、速度的控制,本身实现了CAMediaTiming协议。 CAPropertyAnimation: 属性原创 2015-09-29 20:43:03 · 640 阅读 · 0 评论 -
iOS-动画效果(图片左右滑动 添加动画效果)
图片左右滑动 添加动画效果#import "ViewController.h"#import "NextViewController.h"typedef enum Direction{ Right = 0, Left,}Direction;@interface ViewController (){原创 2015-09-30 14:32:40 · 1029 阅读 · 0 评论 -
iOS 核心动画2
- (void)addLayer{ myLayer = [[CALayer alloc]init]; myLayer.backgroundColor = [UIColor brownColor].CGColor; myLayer.shadowColor = [UIColor yellowColor].CGColor; //阴影的透明度 默认是0原创 2015-09-29 20:48:04 · 238 阅读 · 0 评论 -
iOS 核心动画-1
#import 使用的这个框架 CoreAnimation 核心动画 简称CA CALayer(图层) 和UIView的关系: 在UIView中有一个layer属性作为根图层 ,跟图层没有隐式动画 跟图层上可以放其他子视图,在UIView中所有能看到的内容都包含在layer中 CALayer负责视图中显示的内容和动画 UIView负责监听和相应事件 想原创 2015-09-29 20:46:56 · 291 阅读 · 0 评论