防止View进入历史栈

Prevent View from entering the history stack

具有三个视图 A、B、C,导航顺序如下:

A => B => C

其中三个视图都添加到历史栈中,后退导航顺序如下:

C => B => A

有没有办法从视图 C 导航回视图 A 并跳过视图 B?

C => A

我正在使用 MvvmCross Xamarin.ios。

谢谢!

正如suart所说; Gshackles 有一些关于 MvvmCross 演示者的精彩博客文章。其中之一是:http://www.gregshackles.com/presenters-in-mvvmcross-manipulating-the-back-stack/

您可以使用的代码行是:

MasterNavigationController.PopToViewController(existingViewController, true);

或者如果你只是想回到第一个(又名根):http://gregshackles.com/presenters-in-mvvmcross-using-presentation-values/

MasterNavigationController.PopToRootViewController(false);