I have customized the UIAlertView class. It's working perfectly. I don't want the bounce animations to happen. It should be added to the view without any animations.
我已经定制了UIAlertView类。它运作得很好。我不希望弹跳动画发生。应该在没有任何动画的情况下将其添加到视图中。
At present i have used [self.layer removeAllAnimations]
.
目前我使用[self.layer removeAllAnimations]。
It has removed the animations except there is a small amount of bounce at the beginning. How can I get rid of this animation? How to avoid the bounce effect completely?
它删除了动画,除了开始时有少量反弹。我怎么能摆脱这个动画?如何完全避免弹跳效果?
Kindly suggest me an idea to implement this.
请建议我实现这个想法。
Thank You.
1 个解决方案
#1
1
In my case, I used this mathod setAnimationsEnabled
like
就我而言,我使用了这个mathod setAnimationsEnabled之类的
[[self class] setAnimationsEnabled:FALSE];
but it has a side effect that "after the class(UIAlertView) is showing without bouncing, other window's animation is all stop".
但它有一个副作用,“在课后(UIAlertView)显示没有弹跳,其他窗口的动画都停止”。
#1
1
In my case, I used this mathod setAnimationsEnabled
like
就我而言,我使用了这个mathod setAnimationsEnabled之类的
[[self class] setAnimationsEnabled:FALSE];
but it has a side effect that "after the class(UIAlertView) is showing without bouncing, other window's animation is all stop".
但它有一个副作用,“在课后(UIAlertView)显示没有弹跳,其他窗口的动画都停止”。