MSSlideNavigationController icon indicating copy to clipboard operation
MSSlideNavigationController copied to clipboard

Problem with translucent navigationbar

Open horstleung opened this issue 11 years ago • 0 comments

Just a little problem that if we use ios7 translucent navigation bar, the screenshot would have a wrong position-y.

I solved it by modify a few lines of code:

  CGRect leftRect = _currentViewController.view.frame;
  leftRect.origin.x = leftRect.origin.x - leftRect.size.width;
    leftRect.origin.y = leftRect.origin.y + (self.navigationBar.translucent)?64:0;

in prepareForSlide method in MSSlideNavigationController. (I just hard code 64 there, we need to check status bar's translucent for 20pt)

horstleung avatar Feb 21 '14 10:02 horstleung