Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // works fine
- CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"opacity"];
- NSNumber *value = [NSNumber numberWithFloat:0.0];
- animation.duration = 3.0;
- animation.fromValue = [NSNumber numberWithFloat:1.0];
- animation.toValue = value;
- [layer addAnimation:animation forKey:@"opacity"];
- [layer setValue:value forKey:@"opacity"];
Add Comment
Please, Sign In to add comment