Skip to content

Instantly share code, notes, and snippets.

@Inferis
Created November 26, 2013 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Inferis/7656512 to your computer and use it in GitHub Desktop.
Save Inferis/7656512 to your computer and use it in GitHub Desktop.
Logs "finished = 0" When I remove the changes in the animations block, finished = 1 The changes are applied, but immediately. Duration = 0.3 but setting any value does not matter.
_blurView.alpha = 0;
CGAffineTransform toTransform = _snapshotView.transform;
_snapshotView.transform = CGAffineTransformIdentity;
[UIView animateWithDuration:[self transitionDuration:transitionContext]
delay:0
usingSpringWithDamping:0.8
initialSpringVelocity:0.2
options:UIViewAnimationOptionCurveEaseOut
animations:^{
_blurView.alpha = 1;
_snapshotView.transform = toTransform;
} completion:^(BOOL finished) {
NSLog(@"finished = %d", finished);
[transitionContext completeTransition:YES];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment