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
UIViewAnimationState - iPhone Development Wiki

UIViewAnimationState

From iPhone Development Wiki
Revision as of 23:22, 4 November 2009 by KennyTM~ (talk | contribs)

Animation transitions

Numeric String Comments
0 (UIViewAnimationTransitionNone) -
1 (UIViewAnimationTransitionFlipFromLeft) oglFlip, fromLeft
2 (UIViewAnimationTransitionFlipFromRight) oglFlip, fromRight
3 (UIViewAnimationTransitionCurlUp) pageCurl
4 (UIViewAnimationTransitionCurlDown) pageUnCurl
101 pageCurl Equivalent to UIViewAnimationTransitionCurlUp
102 pageUnCurl Equivalent to UIViewAnimationTransitionCurlDown
103 suckEffect Sucked to around (160, 360) on the screen.
104 spewEffect Not supported?
105 cameraIris You should assume the view you're operating on has a black background.
106 cameraIrisHollowClose First half of cameraIris.
107 cameraIrisHollowOpen Second half of cameraIris.
108 genieEffect Not supported?
109 unGenieEffect Not supported?
110 rippleEffect
111 twist Not supported?
112 tubey Not supported?
113 swirl Not supported?
114 charminUltra Not supported?
115 zoomyIn Not supported?
116 zoomyOut Not supported?
117 oglApplicationSuspend Not supported?

Using suckEffect

The most SDK-compatible way of using suckEffect is to use animation blocks. But the suction point by default is close to nowhere. Therefore you still need to use the undocumented method +[UIView setAnimationPosition:]:

[UIView beginAnimations:@"suck" context:NULL];
[UIView setAnimationTransition:103 forView:myViewContainer cache:YES];
[UIView setAnimationPosition:CGPointMake(12, 345)];
[myView removeFromSuperview];
[UIView commitAnimations];

References