Type Method

animationWithKeyPath:

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

Declaration

+ (instancetype)animationWithKeyPath:(NSString *)path;

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.