Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
update to support more iOS screen size.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankWu100 committed Aug 8, 2019
1 parent bdafff5 commit 7f4f799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ICViewPager/ICViewPager/ViewPagerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ - (void)layoutSubviews {
CGFloat topLayoutGuide = 0.0;
if (IOS_VERSION_7) {
if (self.navigationController.navigationBar.translucent) {
if (self.prefersStatusBarHidden == NO) topLayoutGuide += 20;
if (self.prefersStatusBarHidden == NO) topLayoutGuide += [UIApplication sharedApplication].statusBarFrame.size.height;
if (self.navigationController.navigationBarHidden == NO) topLayoutGuide += self.navigationController.navigationBar.bounds.size.height;
}
}
Expand Down

0 comments on commit 7f4f799

Please sign in to comment.