CABasicAnimation *theAnimation; theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.y"]; theAnimation.duration=0.5; theAnimation.repeatCount=0; theAnimation.autoreverses=NO; theAnimation.fromValue=[NSNumber numberWithFloat:100]; theAnimation.toValue=[NSNumber numberWithFloat:0]; //[self.quntityView animationDidStart:theAnimation]; [self.quntityView addAnimation:theAnimation forKey:@"animateLayer"];
addAnimation:forKey: - это метод на CALayer.Вы не можете просто позвонить на UIView.
addAnimation:forKey:
Попробуйте:
[self.quntityView.layer addAnimation:theAnimation forKey:@"animateLayer"];