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

Xamarin.forms iOS navigation issue

$
0
0

Hi,
I have a strange problem.I used latest of Xamarin.forms(v 3.1.0.583944).
On iOS, I need to navigate from one page to another page. so I used following code:

`
NavigationPage Root;

public void SetViewRoot(NavigationPage root)
    {

        try
        {
            App.Instance.MainPage = root;
            Root = root;
        }
        catch (System.Exception ex)
        {
             // handle exception
        }
    }

`

in another method(generic) i declare that has code to push to navigation stack:
public async Task PushViewAsync<TView>() where TView : Page { var view = GetView<TView>(); await Root.PushAsync(view); }

but it does not push it to another page. There are no error or exception. But it just stay there. However if i tap on the screen, it goes to next page.

This is absolutely working fine on android. So not sure what it cause on iOS.
Any thoughts?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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