Tencent / QMUI_iOS

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

iOS 15.4设置导航栏背景透明,但是导航栏变黑 #1387

Closed KellyCoder closed 1 year ago

KellyCoder commented 2 years ago

Bug 表现 使用QMUINavigationControllerDelegate修改导航栏背景透明,但是会变黑

截图

image

如何重现

  1. ...
  2. ...

预期的表现 正常情况下,应该是什么表现

其他信息

MoLice commented 2 years ago

UIImage() → UIImage qmui_imageWithColor:UIColorClear

JxJPu9bD commented 2 years ago

我这里设置白色背景, 方法也会调用到, 但是背景却是透明的 不知道是什么原因

`

下面第二个方法都是有效的

JxJPu9bD commented 2 years ago

已经解决, 需要打开 navBarUsesStandardAppearanceOnly

json1994 commented 2 years ago

我设置这个 没有效果 o(╥﹏╥)o

json1994 commented 2 years ago
developerjet commented 1 year ago

navBarUsesStandardAppearanceOnly

你好,请问Swift如何设置navBarUsesStandardAppearanceOnly属性呢,通过QMUICMI访问不到navBarUsesStandardAppearanceOnly这个属性;