Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.07k stars 1.37k forks source link

iOS14.5,iPad状态栏、tabbar、navibar高度不正确 #1280

Closed BorisDuan closed 2 years ago

BorisDuan commented 3 years ago

这是我用系统方法获取的iOS14.5,iPad Pro,12.9英寸,模拟器 NSLog(@"%f",[UIApplication sharedApplication].windows.firstObject.windowScene.statusBarManager.statusBarFrame.size.height); NSLog(@"%f",self.navigationController.navigationBar.bounds.size.height); NSLog(@"%f",self.tabBarController.tabBar.bounds.size.height); 这是QMUI宏定义方法 NSLog(@"%f",StatusBarHeight); NSLog(@"%f",NavigationBarHeight); NSLog(@"%f",TabBarHeight);

这是输出信息,前三个是系统方法获取到,后三个是QMUI宏定义获取到的 --->24.000000 --->50.000000 --->65.000000 --->24.000000 --->0.000000 --->50.000000

其他信息

MoLice commented 2 years ago

无法复现:

image

image