博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CAPropertyAnimation
阅读量:6456 次
发布时间:2019-06-23

本文共 2670 字,大约阅读时间需要 8 分钟。

CAPropertyAnimation Class Reference

Inherits from
:
Conforms to
Framework
/System/Library/Frameworks/
Availability
Available in iOS 2.0 and later.
Declared in
CAAnimation.h
Companion guides

Overview

CAPropertyAnimation is an abstract subclass of CAAnimation for creating animations that manipulate the value of layer properties. The property is specified using a key path that is relative to the layer using the animation.

Tasks

Animated Key Path

  •      property

Property Value Calculation Behavior

  •      property
  •      property
  •      property

Creating an Animation

Properties

additive

Determines if the value specified by the animation is added to the current render tree value to produce the new render tree value.

@property(getter=isAdditive) BOOL additive
Discussion

If YES, the value specified by the animation will be added to the current render tree value of the property to produce the new render tree value. The addition function is type-dependent, e.g. for affine transforms the two matrices are concatenated. The default is NO.

Availability
  • Available in iOS 2.0 and later.
Declared In
CAAnimation.h

cumulative

Determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle.

@property(getter=isCumulative) BOOL cumulative
Discussion

If YES, then the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle. If NO, the value of the property is simply the value calculated for the current repeat cycle. The default is NO.

Availability
  • Available in iOS 2.0 and later.
Declared In
CAAnimation.h

keyPath

Specifies the key path the receiver animates.

@property(copy) *keyPath
Discussion

The key path is relative to the layer the receiver is attached to.

Availability
  • Available in iOS 2.0 and later.
Declared In
CAAnimation.h

valueFunction

An optional value function that is applied to interpolated values.

@property(retain) *valueFunction
Discussion

If the valueFunction property is not nil, the function is applied to the values interpolated by the animation as they are applied to the presentation layer. Defaults to nil.

Availability
  • Available in iOS 3.0 and later.
Declared In
CAAnimation.h

Class Methods

animationWithKeyPath:

Creates and returns an CAPropertyAnimation instance for the specified key path.

+ (id)animationWithKeyPath:( *)
keyPath
Parameters
keyPath

The key path of the property to be animated.

Return Value

A new instance of CAPropertyAnimation with the key path set to keyPath.

Availability
  • Available in iOS 2.0 and later.
Related Sample Code
Declared In
CAAnimation.h

转载于:https://www.cnblogs.com/zyingn/articles/iOS_reference2.html

你可能感兴趣的文章
Foundation框架 - 快速创建跨平台的网站页面原型
查看>>
open-falcon
查看>>
三菱plc输出指示灯不亮怎么办(转载)
查看>>
doc2vec使用说明(一)gensim工具包TaggedLineDocument
查看>>
intellij maven配置与使用
查看>>
SpringMVC文件下载与JSON格式
查看>>
Q:图像太大,在opencv上显示不完全
查看>>
修正锚点跳转位置 避免头部fixed固定部分遮挡
查看>>
linux下ping不通的解决方法
查看>>
利用ItextPdf、core-renderer-R8 来生成PDF
查看>>
irc操作小记
查看>>
JAVA 与 PHP 的不同和相同
查看>>
NavigationController的使用
查看>>
多线程编程之Windows环境下创建新线程
查看>>
CentOS 7使用systemctl如何补全服务名称
查看>>
Unity3D NGUI 给button按钮添加单间事件
查看>>
密码的校验.大小写字母,数字,特殊字符中的至少3种
查看>>
ios 不同sdk4.3 6.0版本号,关于方法的兼容性的通用方法
查看>>
Shell编程学习总结
查看>>
构建之法阅读笔记02
查看>>