Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CABasicAnimation *animation = [CABasicAnimation animation];
- animation.keyPath = @"position.x";
- animation.byValue = @200;
- animation.duration = 1;
- animation.fillMode = kCAFillModeForwards;
- animation.removedOnCompletion = NO;
- [_buttonTest.layer addAnimation:animation forKey:@"basic"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement