You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

iOS 26.1 透明标签栏及UI元素出现深色底色的问题求助

iOS 26.1 透明标签栏及UI元素出现深色底色的问题求助

大家好,我最近把系统从iOS 26升级到26.1后遇到了个头疼的问题——之前设置的透明系统元素(比如UITabBarUIBarButtonItem)突然都带上了深色的底色,在iOS 26里明明是完全透明的毛玻璃效果。更奇怪的是,这个深色底色只在普通UIViewController里出现,UITableViewController里的标签栏还是正常的透明状态,哪怕是在iOS 26.1上也是如此。

我用的还是之前的外观配置代码,完全没改过:

func setupTabBarAppearance() {
    guard let tabBar = tabBarController?.tabBar else { return }
    if #available(iOS 26.0, *) {
        let appearance = UITabBarAppearance()
        appearance.configureWithTransparentBackground()
        appearance.backgroundColor = .clear
        appearance.backgroundEffect = nil
        appearance.shadowColor = .clear
        tabBar.standardAppearance = appearance
        tabBar.scrollEdgeAppearance = appearance
        tabBar.isTranslucent = true
        tabBar.backgroundColor = .clear
        tabBar.barTintColor = .clear
    } else {
        tabBar.isTranslucent = true
        tabBar.backgroundImage = UIImage()
        tabBar.shadowImage = UIImage()
        tabBar.backgroundColor = .clear
    }
}

我已经尝试了各种方法:移除backgroundEffect、强制设置所有相关颜色为.clear、改用configureWithDefaultBackground、修改edgesForExtendedLayoutextendedLayoutIncludesOpaqueBars属性等等,都没法去掉这个新出现的深色底色。

另外我还发现,如果把iOS 26系统设置里的「液态玻璃」从「清晰」改成「Tinted」,所有页面都会变成黑色底色,界面倒是统一了,但这完全不是我想要的效果。

现在实在没辙了,想请教各位大佬:这是iOS 26.1的故意改动,还是个系统bug?或者有没有新的API/配置方式能让标签栏回到之前完全透明的状态?

火山引擎 最新活动