Created
September 2, 2016 15:56
-
-
Save jimmgarrido/edcbf4cf34c96e727a38f25ebfd862d8 to your computer and use it in GitHub Desktop.
Hide 'More' Tab Navbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UIKit; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.iOS; | |
using xamtabproblem.iOS; | |
[assembly:ExportRenderer(typeof(TabbedPage), typeof(CustomTabbedRenderer))] | |
namespace xamtabproblem.iOS | |
{ | |
public class CustomTabbedRenderer : TabbedRenderer | |
{ | |
public override UIViewController SelectedViewController | |
{ | |
get | |
{ | |
return base.SelectedViewController; | |
} | |
set | |
{ | |
base.SelectedViewController = value; | |
if (SelectedViewController.GetType() == typeof(UINavigationController)) | |
{ | |
(SelectedViewController as UINavigationController).NavigationBarHidden = true; | |
} | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment