[英]Switching Views within UITabBar View
好吧,我認為您正在濫用模態視圖控制器。 對於這樣的問題,我會說您應該使用UINavigationController將它們放入視圖控制器堆棧中。 不必使每個選項卡都具有UIViewController使其成為UINavigationController,而是可以在其上推送和彈出視圖控制器,它們仍顯示選項卡欄。
參見http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html
使用:tabBarController.selectedViewController = newViewController
編輯:這里不需要UINavigationController。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.