2013-12-17 13 views

回答

1

,如果你想要去到另一個選項卡中的另一個選項卡中完成操作後,這將幫助:

[self.tabbarcontroller setSelectedIndex:no of your index]; 

因此,如果在的TabBar SourceTableViewController索引號爲2,比

[self.tabbarcontroller setSelectedIndex:2]; 

請在您的轉移行動FundTransferViewController類中調用此類。

+0

非常感謝。它的作品:) – Sofeda

1

使用此:

[tabBarControllerObj setSelectedIndex:1]; //Change index value as per ur need 
0

請試試這個:

[tabBar setSelectedViewController:[[tabBar viewControllers] objectAtIndex:index]];// where index is the index of view controller where you want to switch back. 

希望這會幫助你。

+0

這是給我這個錯誤UITabBarController setSelectedViewController:]只有視圖控制器在標籤欄控制器的視圖控制器的列表中可以選擇 – Sofeda

相關問題