IOS basket effect

Possible duplicate:
How can I replicate Mail.app trace animations

I would use the trash effect, as in the graphics application on the iPhone. I want to destroy UIView.

Does anyone know how?

+2
source share
3 answers

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 //--------------------------------------------------------------------- 
+5
source

You can use CAAnimation to zoom.

Post videos on iTunes named Create Animated Interfaces from WWDC 2010. This will get you started. Be sure to check out CoreAnimation in practice Part 1/2 of WWDC 2010. These are really quality tutorials.

+1
source

The specific animation used is a private API and is likely to reject you. However, it is widely documented, you can find it by doing a search on SO.

You can approximate the animation used by taking a layer of the view and simultaneously transform, rotate, apply perspective and move / scale the view using Core Animation.

How to make & suckEffect "in the left corner of the iPhone?

0
source

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


All Articles