summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2016-11-16 04:02:54 -0600
committerRui Marinho <me@ruimarinho.net>2016-11-16 11:02:54 +0100
commit98235e0eea8b540ac10a71b97ee08a5842abd664 (patch)
tree83856b6c24d0b8730946cd3241f550623a0d7f7b /Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
parent107ed5e545698a647b9cd1be22745a2c35aeebc4 (diff)
downloadxamarin-forms-98235e0eea8b540ac10a71b97ee08a5842abd664.tar.gz
xamarin-forms-98235e0eea8b540ac10a71b97ee08a5842abd664.tar.bz2
xamarin-forms-98235e0eea8b540ac10a71b97ee08a5842abd664.zip
[iOS] Add Platform Specific features for PrefersStatusBarHidden/UIStatusBarAnimation (#463)
* [iOS] Add Platform Specific features for PrefersStatusBarHidden/UIStatusBarAnimation * Update docs
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
index 17c08e75..7add5eb4 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
@@ -2,6 +2,7 @@ using System;
using System.ComponentModel;
using System.Linq;
using UIKit;
+using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
using PointF = CoreGraphics.CGPoint;
namespace Xamarin.Forms.Platform.iOS
@@ -318,8 +319,18 @@ namespace Xamarin.Forms.Platform.iOS
_detailController.View.AddSubview(detailRenderer.NativeView);
_detailController.AddChildViewController(detailRenderer.ViewController);
+
+ SetNeedsStatusBarAppearanceUpdate();
}
+ public override UIViewController ChildViewControllerForStatusBarHidden()
+ {
+ if (((MasterDetailPage)Element).Detail != null)
+ return (UIViewController)Platform.GetRenderer(((MasterDetailPage)Element).Detail);
+ else
+ return base.ChildViewControllerForStatusBarHidden();
+ }
+
void UpdatePanGesture()
{
var model = (MasterDetailPage)Element;