我正在使用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>