我使用的是Rg.Plugins。弹出窗口,弹出窗口不会出现在ios上,但在Android上工作良好,我不知道是什么问题发生
Xamarin表单版本:5.0.0.2083Rg.Plugins.Popup: 2.0.0.12
Appdelegate FinishedLaunching:
Rg.Plugins.Popup.Popup.Init();
Xaml:
<pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup">
<!-- Add your design here -->
</pages:PopupPage>
xaml.cs:
继承的弹出
发生这种情况的唯一原因是如果你不把它推过主线程:
试试这样写:
await Device.InvokeOnMainThreadAsync(async()=> await Navigation.PushPopupAsync(page));
祝你好运,如果你有疑问,请随时回复