core animation
文章平均质量分 66
bo_xiaozhao
这个作者很懒,什么都没留下…
展开
-
core animation pdf 文件
core animation pdf 文件原创 2011-01-10 16:20:59 · 117 阅读 · 0 评论 -
动画类型和动画时间简介
动画类型和动画时间简介 一:动画类的继承树 core animation 一下一些,可以用在你的app的animation class(1) CAAnimation 是一个抽象类,并且是所有动画类的基类。CAAnimation 实现了CAMediaTiming 协议,CAMediaTiming 提供一些关于动画设置的简单属性 duration、speed、 ...原创 2012-10-19 11:16:45 · 207 阅读 · 0 评论 -
Chaining Animations
- (void)right {-// photo1 is going to move to where photo2 isNSPoint newOrigin = [photo2 frame].origin;CABasicAnimation *animation = [self basicAnimationNamed:@"photo1" duration:1.0f];animatio...原创 2010-12-10 14:32:58 · 76 阅读 · 0 评论 -
Cocoa Animation Timing
You change the default animation timing by setting the current animation context’s duration like this: [NSAnimationContext beginGrouping];[[NSAnimationContext currentContext] setDuration:2.0f];...原创 2010-12-10 14:27:29 · 118 阅读 · 0 评论 -
Animation Timing
一:Animation Timing Curves 1:Linear Animation Timing 2:Ease-In Animation Timing 3:Ease-Out Animation Timing 4:Ease-In Ease-Out Animation Timing5:Custom Animation Timing ...原创 2010-12-10 14:06:56 · 156 阅读 · 0 评论 -
Animating Transitions
- (void)keyDown:(NSEvent *)event { if(nil != [self.beach superview]) { [[self animator] replaceSubview:self.beach with:self.snow];} else if(nil != [self.snow superview]) { [[self ...原创 2010-12-10 13:50:21 · 73 阅读 · 0 评论 -
Animation Types----Grouping Animations
- (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { CGFloat xInset = 3.0f * (NSWidth(frame) / 8.0f); CGFloat yInset = 3.0f * (NSHeight(frame...原创 2010-12-10 13:40:02 · 117 阅读 · 0 评论 -
Animation Types
3.1 Basic Animation CABasicAnimation 3.2 Keyframe Animations 我最近进行了一些关于关键桢动画方面的研究,感觉不错。关键桢动画其实是一个很酷的东西,因为它们会在你创建的层进行动作时给你提供更加精确的控制。基本动画在“开始”和“结束”点之间进行线性插值,在很多情况下,你都可以使用基本动画。但是有时候,如果你希望进行...原创 2010-12-10 11:29:15 · 184 阅读 · 0 评论 -
Introducing Cocoa Animation
Smooth Moves you first ask mover for its animator, and you then send setFrame: to that instead. - (void)move { if(isRight) { [[mover animator] setFrame:leftFramePosition]; ...原创 2010-12-10 11:08:16 · 87 阅读 · 0 评论 -
Moving Without Animation
1. Initialize the two rectangles required for the starting and endingpositions for the image in line 4.2. Add the image to the NSImageView that will be moved back andforth between these ...原创 2010-12-10 10:52:45 · 96 阅读 · 0 评论 -
animationWithKeyPath
CABasicAnimation animationWithKeyPath TypesWhen using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath. This is a long string and i...原创 2011-09-19 16:11:02 · 97 阅读 · 0 评论 -
时间、时间空间、CAAnimation
分解一个简单是动画,它只是在动画时间内简单的替换不同的值。Core Animation 为 animations 和layers提供了基础的时间函数,和高级的时间线特性。 media timing protocol 动画时间模型是用一个 CAMediaTiming 协议声明的,CAAnimation的类和它的子类都支持该协议。时间模型指定一个动画的 offset, duration...原创 2012-10-22 10:04:19 · 133 阅读 · 0 评论