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

PopToRootAsync iOS error

$
0
0

Hi! I'm trying to close two windows in the same instruction. In Android PopToRootAsync works perfectly, but in iOS the app crashes.

The error says:

System.ArgumentNullException: Argument cannot be null.Parameter name: gestureRecognizer

My code:

public async void SaveButton()
{
    SaveData();
    await this.Navigation.PopToRootAsync();
}

I'm using Xlabs MVVM in Xamarin Forms. Any idea about the problem?


Viewing all articles
Browse latest Browse all 89864

Trending Articles