У меня есть ярлык, который всплывает, отображая точки в моем приложении. Я использую следующий код, чтобы сделать ярлык более крупным по масштабу, а затем меньше. Я также хотел бы оживить цвет, изменяющийся от фиолетового до зеленого. Может ли кто-нибудь указать мне ресурс для достижения этого?
mLabel.textColor = [UIColor purpleColor];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
mLabel.transform = CGAffineTransformMakeScale(1.5,1.5);
[UIView setAnimationRepeatCount:1];
mLabel.transform = CGAffineTransformMakeScale(0.5,0.5);
mLabel.textColor = [UIColor greenColor];
[UIView commitAnimations];