1

我正在尝试使用 IUIViewControllerTransitioningDelegate 实现我的自定义视图之间的转换。这是我的 TableViewController

public class TableListView : MvxTableViewController, IUIViewControllerTransitioningDelegate
{
...
[Export ("animationControllerForPresentedController:presentingController:sourceController:")]
        public MonoTouch.UIKit.IUIViewControllerAnimatedTransitioning PresentingController (MonoTouch.UIKit.UIViewController presented, MonoTouch.UIKit.UIViewController presenting, MonoTouch.UIKit.UIViewController source)
{
...
}

[Export ("animationControllerForDismissedController:")]
public  MonoTouch.UIKit.IUIViewControllerAnimatedTransitioning GetAnimationControllerForDismissedController (MonoTouch.UIKit.UIViewController dismissed)
{
...
    }
}

但是当我从核心显示另一个 ViewModel 时,不会调用 GetAnimationControllerForDismissedController 或 PresentingController(当它本身显示时)......

这里有一个单触示例 https://github.com/xamarin/monotouch-samples/tree/master/TransitionsDemo

4

0 回答 0