Skip to content

Commit

Permalink
Updated sample code.
Browse files Browse the repository at this point in the history
  • Loading branch information
devedbox committed Apr 2, 2017
1 parent f24fd18 commit 05f0b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AXAnimationChain/AnimationConvertableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ - (IBAction)extends:(UIButton *)sender {
[_keyframeTransitionView.layer addAnimation:[CAKeyframeAnimation animationWithBasic:animation usingValuesFunction:[CAMediaTimingFunction easeInBounceValuesFuntion]] forKey:@"position"];
animation.fromValue = [NSValue valueWithCGPoint:CGPointMake(self.transitionView.center.x, CGRectGetHeight(_transitionView.frame)*.5+64)];
animation.toValue = [NSValue valueWithCGPoint:CGPointMake(self.transitionView.center.x, CGRectGetHeight(self.view.frame)-64-CGRectGetHeight(_transitionView.frame)*.5)];
[_transitionView.layer addAnimation:animation forKey:@"position"];
// [_transitionView.layer addAnimation:animation forKey:@"position"];
}]];
[alert addAction:[UIAlertAction actionWithTitle:@"easeOutBounce" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[_transitionView.layer removeAllAnimations];
Expand Down

0 comments on commit 05f0b4c

Please sign in to comment.