(Created page with 'CATransition is an Objective-C wrapper for creating view transitions. As of 3.1.2, there are 11 types of transitions. 4 of them are SDK-compatible, but are the most boring on…') |
(→filter) |
||
Line 25: | Line 25: | ||
... | ... | ||
</source> | </source> | ||
{| class="wikitable" | |||
|- | |||
! Transition | |||
! Accepted parameters | |||
|- | |||
| cube | |||
| <tt>float inputAmount;</tt> (perspective) | |||
|- | |||
| oglFlip | |||
| <tt>float inputAmount;</tt> | |||
|- | |||
| cameraIris | |||
| <tt>CGPoint inputPosition;</tt> | |||
|- | |||
| suckEffect | |||
| <tt>CGPoint inputPosition;</tt> | |||
|- | |||
| pageCurl, pageUnCurl | |||
| <tt>float inputColor[];</tt> | |||
|} | |||
== References == | == References == | ||
* Official reference: {{sdklink|QuartzCore|CATransition}} | * Official reference: {{sdklink|QuartzCore|CATransition}} | ||
{{IPFHeader|QuartzCore||2}} | {{IPFHeader|QuartzCore||2}} |
Revision as of 21:52, 15 November 2009
CATransition is an Objective-C wrapper for creating view transitions. As of 3.1.2, there are 11 types of transitions. 4 of them are SDK-compatible, but are the most boring ones. The following shows all 11 types of transition from picture "A" to "B" at 40%. The subtypes, if any, is "fromLeft".
- Error creating thumbnail: File missing
cameraIris
- Error creating thumbnail: File missing
cube
- Error creating thumbnail: File missing
fade (kCATransitionFade)
- Error creating thumbnail: File missing
moveIn (kCATransitionMoveIn)
- Error creating thumbnail: File missing
oglFlip
- Error creating thumbnail: File missing
pageCurl
- Error creating thumbnail: File missing
pageUnCurl
- Error creating thumbnail: File missing
push (kCATransitionPush)
- Error creating thumbnail: File missing
reveal (kCATransitionReveal)
- Error creating thumbnail: File missing
rippleEffect
- Error creating thumbnail: File missing
suckEffect
filter
Main article: CAFilter
Some transitions accept addition arguments through the filter property, for example, you can set the location of suckEffect using
...
CAFilter* filter = [CAFilter filterWithName:@"suckEffect"];
[filter setValue:[NSValue valueWithCGPoint:CGPointMake(160, 240)] forKey:@"inputPosition"];
transition.filter = filter;
...
Transition | Accepted parameters |
---|---|
cube | float inputAmount; (perspective) |
oglFlip | float inputAmount; |
cameraIris | CGPoint inputPosition; |
suckEffect | CGPoint inputPosition; |
pageCurl, pageUnCurl | float inputColor[]; |
References
- Official reference: CATransition
- Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/QuartzCore/CATransition2.h
|