Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
CATransition: Difference between revisions - iPhone Development Wiki

CATransition: Difference between revisions

From iPhone Development Wiki
mNo edit summary
Line 44: Line 44:
|-
|-
| pageCurl, pageUnCurl
| pageCurl, pageUnCurl
| <tt>float inputColor[];</tt>
| <tt>float inputColor[]; float inputAngle;</tt>
|}
|}



Revision as of 09:37, 15 December 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".

filter

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[]; float inputAngle;

References