Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[CoreAnimation] Change UIView.Animate to UIView.Transition, bug #4422…

… fix
  • Loading branch information...
commit 6d1b654283a67e1508851e5e8867fe0bb033f675 1 parent 88e11d9
Oleg Demchenko olegoid authored
Showing with 4 additions and 9 deletions.
  1. +4 −9 CoreAnimation/Screens/iPad/ViewTransitions/Controller.cs
13 CoreAnimation/Screens/iPad/ViewTransitions/Controller.cs
View
@@ -28,11 +28,8 @@ public override void ViewDidLoad ()
transitionViewController.SetToolbarVisibility (InterfaceOrientation);
transitionViewController.TransitionClicked += (s, e) => {
- UIView.Animate (1, 0, transitionViewController.SelectedTransition, () => {
- transitionViewController.View.RemoveFromSuperview ();
- View.AddSubview (backViewController.View);
- }, null);
- UIView.BeginAnimations ("ViewChange");
+ UIView.Transition(transitionViewController.View, backViewController.View, 0.75,
+ transitionViewController.SelectedTransition, null);
};
transitionViewController.ContentsClicked += () => {
@@ -42,10 +39,8 @@ public override void ViewDidLoad ()
};
backViewController.BackClicked += (s, e) => {
- UIView.Animate (.75, 0, transitionViewController.SelectedTransition, () => {
- backViewController.View.RemoveFromSuperview ();
- View.AddSubview (transitionViewController.View);
- }, null);
+ UIView.Transition(backViewController.View, transitionViewController.View, 0.75,
+ transitionViewController.SelectedTransition, null);
};
}
Please sign in to comment.
Something went wrong with that request. Please try again.