title: How to get callback from UIPickerView when the selectRow animation is done?
body: <p>I have a UIPickerView and I would like to be notified when the selectRow animation is done.</p>
  
  <p>I tried the following approach in my view controller which has a reference to the UIPickerView and it won't work:</p>
  
  <pre><code>-(void)viewDidLoad
  {
      ...
      [UIPickerView setAnimationDelegate:self];
      [UIPickerView setAnimationDidStopSelector:@selector(animationFin ished:finished:context];
      ...
  }
  
  - (void)animationFinishedNSString *)animationID finishedBOOL)finished contextvoid *)context
  {
      if (finished) {
  
      }
  
  }
  </code></pre>
  
  <p>Then somewhere in my code, I initiate the animation:</p>
  
  <pre><code>[picker selectRow:random() % pickerDataCount inComponent:0 animated:YES];
  </code></pre>