diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/TabletMasterDetailRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/TabletMasterDetailRenderer.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TabletMasterDetailRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TabletMasterDetailRenderer.cs index a3fbd2ab..207282e7 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/TabletMasterDetailRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/TabletMasterDetailRenderer.cs @@ -1,6 +1,7 @@ using System; using System.ComponentModel; using UIKit; +using Xamarin.Forms.PlatformConfiguration.iOSSpecific; namespace Xamarin.Forms.Platform.iOS { @@ -234,6 +235,14 @@ namespace Xamarin.Forms.Platform.iOS base.WillRotate(toInterfaceOrientation, duration); } + public override UIViewController ChildViewControllerForStatusBarHidden() + { + if (((MasterDetailPage)Element).Detail != null) + return (UIViewController)Platform.GetRenderer(((MasterDetailPage)Element).Detail); + else + return base.ChildViewControllerForStatusBarHidden(); + } + protected virtual void OnElementChanged(VisualElementChangedEventArgs e) { if (e.OldElement != null) |