title: Iphone - how to pass a parameter to animationDidStop?
body: <p>I have this method...</p>
  
  <pre><code>- (void) helloThere: (int) myValue {
  
    // I am trying to pass myValue to animationDidStop
    [UIView beginAnimations:nil context:[NSNumber numberWithInt: myValue]];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)];
    [UIView setAnimationDelegate:self];
  
    // do stuff
  
    [UIView commitAnimations];
  }
  </code></pre>
  
  <p>then I am trying to retrieve myValue on animationDidStop... </p>
  
  <pre><code>- (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
  
    int retrievedValue = (int)context; //??? not giving me the right number
  
  }
  </code></pre>
  
  <p>but retrievedValue is giving me a number that has nothing to do to the original myValue...</p>
  
  <p>How to retrieve that number?</p>
  
  <p>thanks for any help.</p>