daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Jan 12th, 2017 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CABasicAnimation *animation = [CABasicAnimation animation];
  2.     animation.keyPath = @"position.x";
  3.     animation.byValue = @200;
  4.     animation.duration = 1;
  5.    
  6.     animation.fillMode = kCAFillModeForwards;
  7.     animation.removedOnCompletion = NO;
  8.    
  9.     [_buttonTest.layer addAnimation:animation forKey:@"basic"];
RAW Paste Data
Top