iOS 14和iOS 15上的标签栏颜色不同

发布于 2025-01-24 23:54:28 字数 575 浏览 2 评论 0原文

我正在使用最新版本的Xcode。

我的iOS应用程序是使用标签栏控制器构建的。连接到标签栏控制器的视图控制器的主要视图具有绿色背景颜色。这将使菜单栏在顶部(随时间,网络…)绿色,并使Tab栏在iOS 14上具有轻微的绿色触摸,如这样:

”

,但自ios 15 tab bar是完全绿色而不是半透明的绿色触感。看起来这样:

“

为什么?如何对iOS 15产生与iOS 14相同的影响。

I'm using the newest version of Xcode.

My iOS app is build with a Tab Bar Controller. The main Views of the View Controllers that are connected to the Tab Bar Controller have a green Background color. This will make the menu bar at the top (with time, network …) green and will make the Tab Bar have a slight green touch, on iOS 14, like this:

iOS 14

But since iOS 15 the Tab Bar is fully green instead of translucent with a green touch. It looks like this:

iOS 15

Why that? How can I have the same effect on iOS 15 as on iOS 14.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁吢 2025-01-31 23:54:28

Swift:

UserDefaults.standard.set(false, forKey: "UIBarsApplyChromelessEverywhere")

Objective-C:

[NSUserDefaults.standardUserDefaults setBool:NO forKey:@"UIBarsApplyChromelessEverywhere"];

这也将修复UinavigationBar和Uitoolbar。

Swift:

UserDefaults.standard.set(false, forKey: "UIBarsApplyChromelessEverywhere")

Objective-C:

[NSUserDefaults.standardUserDefaults setBool:NO forKey:@"UIBarsApplyChromelessEverywhere"];

This will also fix UINavigationBar and UIToolbar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文