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

How to add navigation bar to iOS page opened from xamarin forms page?

$
0
0

Hi,

I am using below code to access iOS page from Xamarin.Forms using dependency injection. Its rendering the required page, but navigation bar is not shown. How to add nav bar to the inserted iOS page with back button and clicking on back, should navigate back to xamarin.forms page.

In iOS dependency injection:

         SyncStatusController syncStatusController = new SyncStatusController ();
         var rootController = ((AppDelegate)(UIApplication.SharedApplication.Delegate)).Window.RootViewController;
         var navcontroller = rootController as UINavigationController;
         if (navcontroller != null)
               rootController = navcontroller.VisibleViewController;
         rootController.PresentViewController (syncStatusController, true, null);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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