| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/QuartzCore.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Declared in | CAAnimation.h |
| Companion guides |
The CATransition class implements transition animations for a layer. You can specify the transition effect from a set of predefined transitions or by providing a custom CIFilter instance.
startProgress property
endProgress property
filter property
For more about Objective-C properties, see “Properties” in The Objective-C 2.0 Programming Language.
Indicates the end point of the receiver as a fraction of the entire transition.
@property float endProgress
The value must be greater than or equal to startProgress, and not greater than 1.0. If endProgress is less than startProgress the behavior is undefined. The default value is 1.0.
CAAnimation.hAn optional CoreImage filter object that provides the transition.
@property(retain) CIFilter *filter
If specified, the filter must support both kCIInputImageKey and kCIInputTargetImageKey input keys, and the kCIOutputImageKey output key. The filter may optionally support the kCIInputExtentKey input key, which is set to a rectangle describing the region in which the transition should run. If filter does not support the required input and output keys the behavior is undefined.
Defaults to nil. When a transition filter is specified the type and subtype properties are ignored.
CAAnimation.hIndicates the start point of the receiver as a fraction of the entire transition.
@property float startProgress
Legal values are numbers between 0.0 and 1.0. For example, to start the transition half way through its progress set startProgress to 0.5. The default value is 0.
CAAnimation.hSpecifies an optional subtype that indicates the direction for the predefined motion-based transitions.
@property(copy) NSString *subtype
The possible values are shown in “Common Transition Subtypes”. The default is nil.
This property is ignored if a custom transition is specified in the filter property.
CAAnimation.hSpecifies the predefined transition type.
@property(copy) NSString *type
The possible values are shown in “Common Transition Types”. This property is ignored if a custom transition is specified in the filter property. The default is kCATransitionFade.
CAAnimation.hThese constants specify the transition types that can be used with the type property.
NSString * const kCATransitionFade; NSString * const kCATransitionMoveIn; NSString * const kCATransitionPush; NSString * const kCATransitionReveal;
kCATransitionFadeThe layer’s content fades as it becomes visible or hidden.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
kCATransitionMoveInThe layer’s content slides into place over any existing content. The “Common Transition Subtypes” are used with this transition.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
kCATransitionPushThe layer’s content pushes any existing content as it slides into place. The “Common Transition Subtypes” are used with this transition.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
kCATransitionRevealThe layer’s content is revealed gradually in the direction specified by the transition subtype. The “Common Transition Subtypes” are used with this transition.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
CATransition.hThese constants specify the direction of motion-based transitions. They are used with the subtype property.
NSString * const kCATransitionFromRight; NSString * const kCATransitionFromLeft; NSString * const kCATransitionFromTop; NSString * const kCATransitionFromBottom;
kCATransitionFromRightThe transition begins at the right side of the layer.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
kCATransitionFromLeftThe transition begins at the left side of the layer.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
kCATransitionFromTopThe transition begins at the top of the layer.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
kCATransitionFromBottomThe transition begins at the bottom of the layer.
Available in Mac OS X v10.5 and later.
Declared in CAAnimation.h.
CATransition.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-10-31)