本文介绍了如何制作“suckEffect”在iPhone的左下角?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

// 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"];

当我按下删除按钮时,你怎么看我编写一部分动画代码。当我在我的应用程序中按下删除按钮时,会发生suckEffect。但它会进入屏幕的左下角。我想问你是否有人知道我怎么能做这个效果,但我的iPhone屏幕的左角!

How you can see I write a part of code witch make an animated when I press delete button. When I press delete button in my application the "suckEffect" take place. But it goes to left corner of the screen. I want to ask you if anybody know how can I do this effect but for left corner of my iphone screen !!!

推荐答案

您可以使用未记录的。请注意suckEffect未记录,Apple将拒绝使用它的应用程序。同样适用于 setAnimationPosition:

You can use the undocumented +[UIView setAnimationPosition:]. Beware that the suckEffect is undocumented and Apple will reject apps using it. Same for setAnimationPosition:.

这篇关于如何制作“suckEffect”在iPhone的左下角?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 20:20