I want to ask how to implement the following number animation?I hope you can help me, thank you!
can use facebook pop to achieve it?
POPSpringAnimation *springAnimation = [POPSpringAnimation animationWithPropertyNamed:kPOPLayerBounds];
springAnimation.springSpeed = 0;
springAnimation.springBounciness = 20;
if (self.testView.frame.size.width == 100) {
springAnimation.toValue = [NSValue valueWithCGRect:CGRectMake(0, 0, 50, 50)];
} else {
springAnimation.toValue = [NSValue valueWithCGRect:CGRectMake(0, 0, 100, 100)];
}
[self.testView.layer pop_addAnimation:springAnimation forKey:nil];
Aucun commentaire:
Enregistrer un commentaire