title: Get instant value of a CABasicAnimation
body: <p>While i'm implementing a game, i'm just front of a matter, whose really easy i think, but don't know how to fix it. I'm a bit new in objective-c as you could see with my reputation :(</p>
  
  <p>The problem is, i have an animation, which works correctly. Here is the code :</p>
  
  <pre><code>CABasicAnimation * bordgauche = [CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
  bordgauche.fromValue = [NSNumber numberWithFloat:0.0f];
  bordgauche.toValue = [NSNumber numberWithFloat:749.0f];
  bordgauche.duration = t;
  bordgauche.repeatCount = 1;
  [ImageSuivante.layer addAnimation:bordgauche forKey:@"bordgauche"];
  </code></pre>
  
  <p>And i want to get the current position of my image. So i use :</p>
  
  <pre><code>CALayer *currentLayer = (CALayer *)[ImageSuivante.layer presentationLayer];
  currentX = [(NSNumber *)[currentLayer valueForKeyPath:@"transform.translation.x"] floatValue];
  </code></pre>
  
  <p>But i don't get it instantly. I get one time "Current = 0.0000", which is the starting value, when i use a nslog to print it, but not the others after.
  I don't know how to get the instant position of my image, currentX, all the time.</p>
  
  <p>I expect i was understable.
  Thanks for your help :)</p>