1

我正在使用 Xamarin 表单使用 Xamarin.Auth。在 IOS 上,当 Auth Completion 事件触发并且我获得访问权限时,

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

                    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>
4

0 回答 0