Permalink
Browse files

added a way to disable the status bar moving

  • Loading branch information...
1 parent 3f45eac commit e32cc40585a752f4e1e220ded32ac2059b07f753 @Clancey committed Sep 16, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 FlyoutNavigation/FlyoutNavigationController.cs
@@ -235,7 +235,7 @@ public override void ViewDidLayoutSubviews()
[Export("panned")]
public void DragContentView(UIPanGestureRecognizer panGesture)
{
- Console.WriteLine("drag flyout");
+ //Console.WriteLine("drag flyout");
if (ShouldStayOpen || mainView == null)
return;
RectangleF frame = mainView.Frame;
@@ -400,10 +400,10 @@ void SetLocation(RectangleF frame)
statusImage.Frame = statusFrame;
}
}
-
+ public bool DisableStatusBarMoving {get;set;}
void getStatus()
{
- if (!isIos7 || statusImage.Superview != null)
+ if (DisableStatusBarMoving || !isIos7 || statusImage.Superview != null)
return;
this.View.AddSubview(statusImage);
statusImage.Image = captureStatusBarImage();

0 comments on commit e32cc40

Please sign in to comment.