سؤال

enter image description here

This is my TabBarViewController.i want to back in SourceTableViewController after completing the action transfer of FundTransferViewController.Any help?

هل كانت مفيدة؟

المحلول

if you want to go to another tab after completing action in another tab, this will help:

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

so if SourceTableViewController index number in tabbar is 2, than

[self.tabbarcontroller setSelectedIndex:2];

call this in your transfer action in FundTransferViewController class.

نصائح أخرى

Use this:

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

please Try this:

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

hope this will help you.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top