ios - UITabBarController 不显示 "More"按钮

标签 ios xamarin mvvmcross

我正在使用归因于:

[MvxFromStoryboard("Main")]
[MvxRootPresentation(WrapInNavigationController = true)]

当我向 Controller 添加了五个以上的选项卡时,它不会显示“更多”按钮。而是只显示前四个。

选项卡是 MvxViewControllers,它们具有以下属性:

[MvxFromStoryboard("Main")]
[MvxTabPresentation(WrapInNavigationController = false, TabIconName = "icon", TabName = "Tab 1")]

它们是使用 NavigationService.Navigate(TabOneViewModel)ViewWillAppear(bool animated) 方法呈现的

我尝试将 WrapInNavigationController 设置为 false,但还是不行。

如有任何帮助,我们将不胜感激。

最佳答案

使用 Storyboard 时,为了将 TabBarController 添加到您的应用程序,您需要拖放 UITabBarViewController 而不是普通的 UIViewController。否则某些属性无法正确派生(例如本例中的 TabBar - 请查看我的屏幕截图)。

只需确保删除自动创建的 TabBar 项目即可!

Screenshot showing UITabBarViewController in Interface Builder

关于ios - UITabBarController 不显示 "More"按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46670447/

相关文章:

json - MvvmCross:SimpleRestService.cs 中的 JSON 错误

c# - MVVMCross 中的 EditText 编辑功能

unit-testing - 需要帮助测试 Windows Phone 8 中的绑定(bind)

ios - UILabels 在第一次加载 View 时不会更新。

c# - SQLite.Net - 不知道 System.Collections.Generic.List 错误 - Xamarin Android

ios - 使用来自另一个 View 的特定索引的图像启动 UIScrollView

visual-studio - Visual Studio 的 Windows iOS 模拟器无法启动,卡在 Xamarin 或 MAUI 的连接循环中

Android BottomNavigationView 带徽章

ios - 如何在 ObjC 中成功检查 pin 时弹出 AlertView?

iOS - subview Controller 具有 "Strong"对父 View Controller 的引用