diff --git a/ICViewPager/ICViewPager/ViewPagerController.m b/ICViewPager/ICViewPager/ViewPagerController.m index 4281853..2c5ebbf 100644 --- a/ICViewPager/ICViewPager/ViewPagerController.m +++ b/ICViewPager/ICViewPager/ViewPagerController.m @@ -207,6 +207,7 @@ - (void)layoutSubviews { topLayoutGuide = 20.0; if (self.navigationController && !self.navigationController.navigationBarHidden) { topLayoutGuide += self.navigationController.navigationBar.frame.size.height; + topLayoutGuide = self.navigationController.navigationBar.translucent?topLayoutGuide:0; } }