Creates and returns an CAPropertyAnimation instance for the specified key path.
Original signature is '+ (id)animationWithKeyPath:(NSString *)keyPath'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
public static CABasicAnimation AnimationWithKeyPath( NSString keyPath )
Public Shared Function AnimationWithKeyPath ( _ keyPath As NSString _ ) As CABasicAnimation
public: static CABasicAnimation^ AnimationWithKeyPath( NSString^ keyPath )

- keyPath (NSString)
- The key path of the property to be animated.

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

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)