Created
November 26, 2013 10:53
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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