ios - Is there a way to tap into the CoreAnimation completion curve mathematics for custom animations? -


for various reasons, animating manually using cadisplaylink:

- (void)update:(cadisplaylink *)sender; {     // linearly interpolate proportion animated based on elapsed time     cgfloat proportion = ...       [self updateanimationforproportion:proportion]; } 

i want uiviewanimationoptioncurveeaseinout instead of linear calculation.

  • is possible callback coreanimation instead of implementing mathematics manually?
  • or better, possible using ios7 physics based animation?

    [uiview animatewithduration:0.5 delay:0.0      usingspringwithdamping:0.5       initialspringvelocity:0.5                     options:0 animations:^{ ... } completion:nil]; 

nope not possible seems.

if helps looking use ease curves in ios, took list of handy ease curves jquery.easing.1.3 , ported them useable in c simple header file (,c++,objective-c,etc):

https://gist.github.com/metec/10012959


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -