ios - animatewithduration exponentially get faster -
i developing ios app. in app have blocks(uiview's) falling top of screen using uiview animatewithduration. looking have them exponentially faster fall. there way using animatewithduration or there way try achieve same effect?
you can increment duration variable in completion block , recall animation. simple effective way you're asking.
[uiview animatewithduration:somevariable animations:^{ // animation } completion:^ (bool finished) { if (finished) { // increment somevariable here // call holding method again } }];
Comments
Post a Comment