![](/img/trans.png)
[英]How to set delegate of viewControllers in TabbarController?
[英]How to give name to TabBarController items, if the ViewControllers it refer are NavigationControllers?
根據這里的答案,我需要為TabBarController中引用的每個ViewController設置標題。 是的,我知道。 但是,當我使用NavigationController時,即使我在屏幕截圖中將NavigationController和NavigationController的RootViewController的標題都設置為“ Connections”,我似乎也無法更改項目的標題。
TabBarController中的結果只是Item 1,Item 2和Item 3,而不是我期望的Connections,Org和Chats。
我做錯了什么? 怎么做? 謝謝。
從情節提要中設置視圖控制器的標題
另一種方法是在選擇導航欄后選擇要為其更改標題的視圖控制器,轉到“屬性檢查器”並設置標題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.