// Begin Animation "suckEffect". CATransition* animation = [CATransition animation]; animation.type = @"suckEffect"; animation.duration = 1.0f; animation.timingFunction = UIViewAnimationCurveEaseInOut; myView.opaque = 1.0f; [myView.layer addAnimation:animation forKey:@"transitionViewAnimation"];
As you can see, I am writing a piece of code that makes it animated when I click the delete button. When I click the delete button in my application, "suckEffect" happens. But he goes to the left corner of the screen. I want to ask you if anyone knows how I can make this effect, but for the left corner of my iphone screen !!!
source share