PushAsync is not supported globally on iOS, please use a NavigationPage

前端 未结 4 1095
天命终不由人
天命终不由人 2021-01-05 03:47

Everything is working fine when I am handling the Tap event of a ListView item, but when I use this in a TabbedPage it shows the exception please p

4条回答
  •  猫巷女王i
    2021-01-05 04:15

    This error will come while running in iOS only.

    In App.cs Rootpage(Start page) give like below

     public App()
      {
          MainPage=new NavigationPage(new LoginPage());
      }
    

    Now, We can use PushAsyn() in Globally

提交回复
热议问题