Xamarin表单 - 尝试关闭其视图当前不显示的模态视图控制器

时间:2014-09-28 06:08:42

标签: c# xamarin.ios xamarin xamarin.forms xamarin.auth

我正在使用Xamarin.Auth使用Xamarin Forms。 在IOS上,当Auth Completion事件被触发并且我有权访问tocken时,

我需要弹出当前页面并需要推送另一个

                    await  navigation.PopModalAsync();

                    if(IsAuthenticated)
                    {
                        await navigation.PushModalAsync (new Handshake.Shared.Pages.TemplateSelectionPage());                       
                    }
                    else
                        await navigation.PushModalAsync (new Handshake.Shared.Pages.LoginPage());

我在应用程序输出中遇到了这个错误:

attempt to dismiss modal view controller whose view does not currently appear. self = <Xamarin_Forms_Platform_iOS_PlatformRenderer: 0x7c7b3de0> modalViewController = <Xamarin_Forms_Platform_iOS_ModalWrapper: 0x7c7bb310>

0 个答案:

没有答案