Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. [Register("MyView")]
  2. public sealed class MyView : MvxViewController, IUIViewControllerTransitioningDelegate
  3. {
  4. public MyView()
  5. {
  6. WeakTransitioningDelegate = this;
  7. }
  8.  
  9.  
  10. private static readonly CECrossfadeAnimationController CrossFadeAnimationController = new CECrossfadeAnimationController();
  11.  
  12. [Export ("animationControllerForPresentedController:presentingController:sourceController:")]
  13. public IUIViewControllerAnimatedTransitioning PresentingController(UIViewController presented, UIViewController presenting, UIViewController source)
  14. {
  15. CrossFadeAnimationController.Reverse = false;
  16. return CrossFadeAnimationController;
  17. }
  18.  
  19.  
  20. [Export ("animationControllerForDismissedController:")]
  21. public IUIViewControllerAnimatedTransitioning GetAnimationControllerForDismissedController(UIViewController dismissed)
  22. {
  23. CrossFadeAnimationController.Reverse = true;
  24. return CrossFadeAnimationController;
  25. }
  26. }
  27.  
  28. myNavigationController.PushViewController(viewController, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement