【iPhoneX适配】‘爱鱼看看’分页标题栏

This commit is contained in:
xuemh 2018-03-15 22:58:35 +08:00
parent 3aff39059f
commit bdd19906dd
1 changed files with 2 additions and 1 deletions

View File

@ -80,8 +80,9 @@
pageController.selectIndex = 0;
//pageController.menuViewBottomSpace = 10;
[self addChildViewController: pageController];
CGFloat height = [UIApplication sharedApplication].statusBarFrame.size.height + 44;
//tab
pageController.viewFrame = CGRectMake(0,64,self.view.frame.size.width, self.view.frame.size.height - 64) ;
pageController.viewFrame = CGRectMake(0,height,self.view.frame.size.width, self.view.frame.size.height - height) ;
self.pageController = pageController;
[self.view addSubview: pageController.view];