Skip to content

Commit

Permalink
added a way to disable the status bar moving
Browse files Browse the repository at this point in the history
  • Loading branch information
Clancey committed Sep 16, 2013
1 parent 3f45eac commit e32cc40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FlyoutNavigation/FlyoutNavigationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e32cc40

Please sign in to comment.