Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 76418

DisplayActionSheet not showing

$
0
0

I'm using MessagingCenter to signal a MasterDetailPage from my model.

private void ShowActionSheet(object sender, IEnumerable<string> hosts)
{
    Device.BeginInvokeOnMainThread(async () =>
    {
        // Works
        await DisplayAlert("Testing!", "Some text", "OK");

        // Does not work
        await DisplayActionSheet("Test", "Cancel", "Destroy", new[] {"1","2"});
    }
}

When calling DisplayActionSheet I get the following warning:

Warning: Attempt to present <UIAlertController: 0x7e737aa0> on <Xamarin_Forms_Platform_iOS_NavigationRenderer: 0x7e4b31a0> whose view is not in the window hierarchy!

There's a "Please wait"-modal on top of the MasterDetailPage. It works without the modal, but that's not really an acceptable solution.


I have attached a simple demo project.

I fear that this has something to do with iOS 8.2, but any tips or pointers will be appreciated


Viewing all articles
Browse latest Browse all 76418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>