Animaton in UIView as Alert (POP UP)

I need informative help on animation. Want to add animation to your iPhone app. First of all, create an animated UIView as a warning. I searched elsewhere but did not find the exact path.

Please help me with this question .. Is there any blog tutorial or doc file you have than to tell me.

+4
source share
2 answers

I do not want to copy and paste

Please check out this great question: How do I set up the iOS alert view?

Hope you get what you need.

+2
source

Here are some effects for animation:

// 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 //--------------------------------------------------------------------- 

And here is the code, for example, how to use animation with UIWebView

 // Begin Animation "suckEffect". [UIView beginAnimations:@"suck" context:NULL]; [UIView setAnimationTransition:103 forView:webViewContainer cache:NO]; [UIView setAnimationDuration:1.5f]; [UIView setAnimationPosition:CGPointMake(300, 1)]; [webView removeFromSuperView]; [UIView commitAnimations]; 

I hope this helps you ... You can view this article to get more knowledge about animation !!!

+6
source

Source: https://habr.com/ru/post/1381415/


All Articles