2017-10-10 110 views
0

我使用MvxTabBarViewController這是由於有:的UITabBarController不顯示「更多」按鈕

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

當我有五個以上的標籤它不存在「更多」按鈕添加到控制器。而只顯示前四個。

的標籤是MvxViewControllers被歸於同:

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

他們使用NavigationService.Navigate(TabOneViewModel)

我試着設置WrapInNavigationControllerfalse,但仍沒有運氣ViewWillAppear(bool animated)方法介紹。

任何幫助,將不勝感激。

回答

2

使用故事板時,爲了將TabBarController添加到應用程序中,需要拖放UITabBarViewController而不是普通的UIViewController。否則,某些屬性將無法正確派生(如本例中的TabBar - 請參閱我的截圖)。

只要確保你刪除了自動創建的TabBar項目!

Screenshot showing UITabBarViewController in Interface Builder

+0

會給它一個嘗試,讓你知道。謝謝! – Dimitri

+0

這樣做了,謝謝! – Dimitri