I have a xamarin.forms app which have a navigation like this.
MainPage -->(PushmodelASync) Second Page-->(PushModelAsync)--> Third page
What I am trying to do is when navigating from Second Page
to Third Page
I need to Popmodelasync the second page. To do this I called PopmodelAsync in OnDissappearing
. In android it works fine . But in iOS what happens is the third page will open and close instead of closing of second page
protected async override void OnDisappearing()
{
base.OnDisappearing();
await Navigation.PopModalAsync();
}
How to solve this? Any help is appreciated.
OnDisappearing
method. Therefore,PopModalAsync
will not work. You need to callPopModalAsync
when page be active. – Junior Jiang