Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIView-layer addAnimation:forKey:

Since the value of forKey is a NSString, where do I find a complete list of all possible value in the Apple documentation? Thanks

like image 936
pistacchio Avatar asked Feb 25 '23 06:02

pistacchio


2 Answers

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.

like image 141
Dalmazio Avatar answered Mar 03 '23 11:03

Dalmazio


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

like image 40
bor Avatar answered Mar 03 '23 11:03

bor