开发者

UIView-layer addAnimation:forKey:

开发者 https://www.devze.com 2023-03-03 21:40 出处:网络
Since the value of forKey is a NSString, where do I find a complete list of all possible value in the Apple d开发者_开发技巧ocumentation? ThanksThe method addAnimation:forKey: doesn\'t do what you thi

Since the value of forKey is a NSString, where do I find a complete list of all possible value in the Apple d开发者_开发技巧ocumentation? Thanks


The method addAnimation:forKey: doesn't do what you think it does.

The second string parameter is an arbitrary user-defined string to associate with the animation object. The purpose of this parameter is for accessing the animation object at a later time with the animationForKey: method.

The list of animatable properties provided above/below is pertinent to the keyPath property of a CABasicAnimation instance.


List of animatable properties of CALayer:

http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html#//apple_ref/doc/uid/TP40005942-SW1

and/or here

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html#//apple_ref/doc/uid/TP40005942-SW1

0

精彩评论

暂无评论...
验证码 换一张
取 消