private void ViewModel_OnPresenterNeedsToNavigate(object sender, BaseViewModel e) { UIViewController viewController = ViewModelToViewConverter.Convert(e); MyNavigationController.ShowViewController(viewController, null); _liveViews.Add(new Tuple <BaseViewModel, UIViewController>(e, viewController)); }
private void ViewModel_OnPresenterNeedsToGoBack(object sender, EventArgs e) { var removedViewController = MyNavigationController.PopViewController(true); _liveViews.RemoveWhere(i => i.Item2 == removedViewController); }