Created
April 25, 2011 13:03
-
-
Save follesoe/940478 to your computer and use it in GitHub Desktop.
Animation that _should_ work, right?
This file contains hidden or 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
private void ShowEndScreen() | |
{ | |
UIView.BeginAnimations("ShowEndScreen"); | |
UIView.SetAnimationDuration(1.5f); | |
UIView.SetAnimationDidStopSelector(new Selector("didFinishAnimation:")); | |
UIView.SetAnimationDelegate(this); | |
_grid.Layer.Opacity = 0.0f; | |
_grid.Alpha = 0.0f; | |
_grid.Transform = CGAffineTransform.MakeRotation((float)Math.PI); | |
_buttons.Layer.Opacity = 0.5f; | |
UIView.CommitAnimations(); | |
} | |
[Export("didFinishAnimation:")] | |
private void ShowEndScreenFinishAnimation() | |
{ | |
Console.WriteLine("Did finish animation"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment