pistacchio
pistacchio

Reputation: 58963

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

Upvotes: 4

Views: 3663

Answers (2)

Dalmazio
Dalmazio

Reputation: 1835

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.

Upvotes: 5

Related Questions