Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // doesn't snap back, doesn't respect the animation
- CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
- NSValue *value = [NSNumber numberWithFloat:1.5];
- animation.duration = 3.0;
- animation.fromValue = [NSNumber numberWithInt:1.0];
- animation.toValue = value;
- [layer addAnimation:animation forKey:@"transform.scale"];
- [layer setValue:value forKeyPath:@"transform.scale"];
Add Comment
Please, Sign In to add comment