Как я могу добавить эффект отскока, когда я собираюсь показать UIImageView как подпредставление? Нужно ли мне для этого использовать CoreAnimation? Сейчас я думаю только об использовании CAKeyframeAnimation. Пожалуйста, дайте мне знать, есть ли способ лучше. Вот мой текущий код:
CABasicAnimation * theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.y"];
theAnimation.delegate = self;
theAnimation.duration = 1.0;
theAnimation.fromValue = [NSNumber numberWithFloat:notif.center.y];
theAnimation.toValue = [NSNumber numberWithFloat:notif.center.y-20];
theAnimation.repeatCount = 3;