UIPickerView があり、selectRow アニメーションが完了したときに通知を受け取りたいです。
UIPickerView への参照を持つビュー コントローラーで次のアプローチを試しましたが、機能しません。
-(void)viewDidLoad
{
...
[UIPickerView setAnimationDelegate:self];
[UIPickerView setAnimationDidStopSelector:@selector(animationFin ished:finished:context];
...
}
- (void)animationFinishedNSString *)animationID finishedBOOL)finished contextvoid *)context
{
if (finished) {
}
}
次に、コードのどこかで、アニメーションを開始します。
[picker selectRow:random() % pickerDataCount inComponent:0 animated:YES];