Tencent / QMUI_iOS

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

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

Closed Jude5201 closed 2 years ago

Jude5201 commented 3 years ago

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

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

如何重现 iOS14必现

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

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

其他信息

MoLice commented 2 years ago

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

mojimomo commented 2 years ago

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

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

MoLice commented 2 years ago

已发布 4.5.0 修复该问题。

mojimomo commented 2 years ago

Thank you for your message, which has been added to a queuing system. You are currently in 352nd place, and can expect to receive a reply in approximately 19 weeks。