Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created April 25, 2011 13:03
Show Gist options
  • Save follesoe/940479 to your computer and use it in GitHub Desktop.
Save follesoe/940479 to your computer and use it in GitHub Desktop.
Animation that _should_ work, right?
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