We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iPhone14Prox
iOS 16.x
14.x
4.6.x
关于宏定义 StatusBarHeightConnstant在存在导航栏的情况下 ,灵动岛的情况下 高度返回的不对少了
我通过 if #available(iOS 13.0, *) { let window = UIApplication.shared.windows.first let topPadding = window?.safeAreaInsets.top statusBarHeight = topPadding ?? 20.0 } else { statusBarHeight = UIApplication.shared.statusBarFrame.height } 这个方法判断了一下是没问题的,在QMUIhelper 的statusBarHeightConstant方法中,重新写了一下这个返回 然后准确了,我不清楚是我项目的原因 还是咱们就没有写这个适配
The text was updated successfully, but these errors were encountered:
No branches or pull requests
运行环境
iPhone14Prox
iOS 16.x
14.x
4.6.x
具体问题描述
关于宏定义 StatusBarHeightConnstant在存在导航栏的情况下 ,灵动岛的情况下 高度返回的不对少了
问题截图
我通过 if #available(iOS 13.0, *) {
let window = UIApplication.shared.windows.first
let topPadding = window?.safeAreaInsets.top
statusBarHeight = topPadding ?? 20.0
} else {
statusBarHeight = UIApplication.shared.statusBarFrame.height
}
这个方法判断了一下是没问题的,在QMUIhelper 的statusBarHeightConstant方法中,重新写了一下这个返回 然后准确了,我不清楚是我项目的原因 还是咱们就没有写这个适配
The text was updated successfully, but these errors were encountered: