iPadOS 升级到18后,MAUI的底部Tab标签样式和位置被强制修改到了屏幕上方

Magic Lotta 5 信誉分
2025-06-13T11:18:30.42+00:00

求助。

我使用MAUI开发了iPad的App。

当我因为Apple Stroe最低SDK限制为18时,升级了xcode16.4,这导致了我的iPadOS从17变成了18。

当我用iPadOS18编译或打包App时,原本的底部Tab被强制改到了顶部,且样式发生了变化。

比如下面两张图的变化:

用户的图像用户的图像

怎么取消这种强制的修改,还原原有的样式?

开发人员技术 | .NET | .NET 多平台应用 UI

1 个答案

排序依据: 最早
  1. Qihan Liu 3,211 信誉分 学生大使 志愿者审查方
    2025-06-14T22:54:05.9433333+00:00

    您好。

    这个问题与 iOS/iPadOS 更加有关,建议您通过 Apple Developer Forums 发布问题,以获取的回复。

    以下是可能有用的信息:

    根据 Elevating your iPad app with a tab bar and sidebar | Apple Developer Documentation

    In iPadOS 18 and later, the position of the tab bar moves from the bottom of the screen to float over your content at the top. This compact appearance gives you more space for your app’s content. Additionally, because it shares space with the navigation bar, it places your tabs closer to your app’s other controls. 在 iPadOS 18 及更高版本中,标签栏的位置从屏幕底部移动到顶部的内容上。这种紧凑的外观为您提供了更多空间来存储应用程序的内容。此外,由于它与导航栏共享空间,因此它会将您的选项卡放置在更靠近应用程序的其他控件的位置。

    标签栏的移动似乎属于预期行为。

    此答案是否有帮助?

    0 个注释 无注释

你的答案

提问者可以将答案标记为“已接受”,审查方可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。