Take a look at this answer: fooobar.com/questions/1381415 / ...
[UIView beginAnimations:@"suck" context:NULL]; [UIView setAnimationTransition:103 forView:webView cache:NO]; [UIView setAnimationDuration:1.5f]; [UIView setAnimationPosition:CGPointMake(300, 1)]; [UIView commitAnimations];
Please note that this uses a private API and will reject your Apple app. For other animated transitions, see http://iphonedevwiki.net/index.php/UIViewAnimationState
EDIT: iphonedevwiki.net does not seem to work. However, I found something that could help you reproduce this effect, and not make you refuse: (not tested) http://www.aderstedtsoftware.com/users/erik/weblog/c7cb9/
The various AnimationStates objects are as follows (taken from a related SO response):
// Efects for Animation. // 0 (UIViewAnimationTransitionNone) Yes // 1 (UIViewAnimationTransitionFlipFromLeft) oglFlip, fromLeft Yes // 2 (UIViewAnimationTransitionFlipFromRight) oglFlip, fromRight Yes // 3 (UIViewAnimationTransitionCurlUp) pageCurl Yes // 4 (UIViewAnimationTransitionCurlDown) pageUnCurl Yes // 101 pageCurl Yes // 102 pageUnCurl Yes // 103 suckEffect Yes // 104 spewEffect No // 105 cameraIris Yes // 106 cameraIrisHollowClose Yes // 107 cameraIrisHollowOpen Yes // 108 genieEffect No // 109 unGenieEffect No // 110 rippleEffect Yes // 111 twist No // 112 tubey No // 113 swirl No // 114 charminUltra No // 115 zoomyIn No // 116 zoomyOut No // 117 oglApplicationSuspend No //---------------------------------------------------------------------
source share