Skip to content
New issue

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

QMUIConsole在iOS14上背景白色问题 #1274

Closed
Jude5201 opened this issue Jul 23, 2021 · 4 comments
Closed

QMUIConsole在iOS14上背景白色问题 #1274

Jude5201 opened this issue Jul 23, 2021 · 4 comments

Comments

@Jude5201
Copy link

Bug 表现
问题的具体描述
QMUIConsole在更换tableView后未适配iOS14,默认会显示背景视图的白色,而不是显示自身背景颜色。

截图
Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图
IMG_0079

如何重现
iOS14必现

预期的表现
正常情况下,应该是什么表现
背景显示alpha=0.8的黑色

只需在tableViewCell里加上如下代码即可恢复正常显示:
if (@available(iOS 14, *)) { self.backgroundConfiguration = [UIBackgroundConfiguration clearConfiguration]; }

其他信息

  • 设备: [iPhone XS Max]
  • iOS 版本: [iOS 14.7]
  • Xcode 版本: [Xcode 12.5.1]
  • QMUI 版本: [4.2.3]
@MoLice
Copy link
Collaborator

MoLice commented Aug 30, 2021

无法重现,请提供可复现的 Demo。

@mojimomo
Copy link

无法重现,请提供可复现的 Demo。

这个问题我也遇到了,然后我修改了QMUIConsoleLogItemCell中的self.backgroundColor = nil;让他变成clearColor就正常了。可能self.backgroundColor = nil之后就默认变成白色了

@MoLice
Copy link
Collaborator

MoLice commented Aug 10, 2022

已发布 4.5.0 修复该问题。

@mojimomo
Copy link

mojimomo commented Aug 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants