如何回來的TabBar viewcontrollers specifice視圖索引中的作用
這是我TabBarViewController.i要完成的FundTransferViewController.Any幫助作用轉印後回SourceTableViewController後?
如何回來的TabBar viewcontrollers specifice視圖索引中的作用
這是我TabBarViewController.i要完成的FundTransferViewController.Any幫助作用轉印後回SourceTableViewController後?
,如果你想要去到另一個選項卡中的另一個選項卡中完成操作後,這將幫助:
[self.tabbarcontroller setSelectedIndex:no of your index];
因此,如果在的TabBar SourceTableViewController索引號爲2,比
[self.tabbarcontroller setSelectedIndex:2];
請在您的轉移行動FundTransferViewController
類中調用此類。
非常感謝。它的作品:) – Sofeda
使用此:
[tabBarControllerObj setSelectedIndex:1]; //Change index value as per ur need
請試試這個:
[tabBar setSelectedViewController:[[tabBar viewControllers] objectAtIndex:index]];// where index is the index of view controller where you want to switch back.
希望這會幫助你。
這是給我這個錯誤UITabBarController setSelectedViewController:]只有視圖控制器在標籤欄控制器的視圖控制器的列表中可以選擇 – Sofeda
[tabBarObj setSelectedIndex:1]; – Madhu