objective c - CAMediaTimingFunction with 3 {0.0f} Control Points? -



objective c - CAMediaTimingFunction with 3 {0.0f} Control Points? -

i'm trying animate alpha transitions of nsviews. needs happen during animation, of it's superview (a bounds change). it's kind of complicated explain why, need these alpha transitions have timing function wherein alpha stays @ 0.0 first 3/4 of duration (0.25 seconds). thought if defined own timing function command points 0.0, 0.0, 0.0, 1.0, accomplish desired effect. obviously, don't understand timing functions , math in general.

if provide advice, great!

regards, alec

the camediatimingfunction creates bezier curve using command points. think task improve solution utilize keyframes opacity animation.

cakeyframeanimation *animation = [cakeyframeanimation animation]; animation.values = [nsarray arraywithobjects: [nsnumber numberwithfloat:0.0], [nsnumber numberwithfloat:1.0], nil]; animation.keytimes = [nsarray arraywithobjects: [nsnumber numberwithfloat:0.75], [nsnumber numberwithfloat:1.0], nil];

which create animation stays @ 0 until 3 quarters of duration , moves 1.

objective-c cocoa core-animation

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -