From 5cbe729447d65458affa00412b042881e8329f53 Mon Sep 17 00:00:00 2001 From: 492220437 <492220437@qq.com> Date: Thu, 8 May 2014 13:39:55 +0800 Subject: [PATCH] Update ViewPagerController.m topLayoutGuide = self.navigationController.navigationBar.translucent?topLayoutGuide:0; if self.navigationController.navigationBar.translucent == no,self.tableview.frame.origin.y should be 0; --- ICViewPager/ICViewPager/ViewPagerController.m | 1 + 1 file changed, 1 insertion(+) 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; } }