Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Register("MyView")]
- public sealed class MyView : MvxViewController, IUIViewControllerTransitioningDelegate
- {
- public MyView()
- {
- WeakTransitioningDelegate = this;
- }
- private static readonly CECrossfadeAnimationController CrossFadeAnimationController = new CECrossfadeAnimationController();
- [Export ("animationControllerForPresentedController:presentingController:sourceController:")]
- public IUIViewControllerAnimatedTransitioning PresentingController(UIViewController presented, UIViewController presenting, UIViewController source)
- {
- CrossFadeAnimationController.Reverse = false;
- return CrossFadeAnimationController;
- }
- [Export ("animationControllerForDismissedController:")]
- public IUIViewControllerAnimatedTransitioning GetAnimationControllerForDismissedController(UIViewController dismissed)
- {
- CrossFadeAnimationController.Reverse = true;
- return CrossFadeAnimationController;
- }
- }
- myNavigationController.PushViewController(viewController, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement