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

Navigation problem (maybe a bug with the new Xamarin version)

$
0
0

Hi,
to move from a page to another
i used this method:

Mynav = new NavigationPage(mypage) { };
MainPage = Mynav;

But I noticed that there are some memory problems: after i changed page a certain limited number of times, usually the app crashes.

So I moved to this other method (I read it on this forum):

Navigation.InsertPageBefore(mypage, Mynav.CurrentPage);
Navigation.PopAsync(false);

On Android I have no problems, but on iOS, the first time I change page is OK, but the second time the app crashes and I receive this error:
"Unhandled managed exception: before must be a child of the NavigationPage"

Why the behavior is different between Android and iOS?

Until yesterday, I'm quite sure that the last method worked also on iOS, but today after I updated Xamarin, I receive this error.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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