Reputation: 689
I have situation like I have a UITabBarController. It has 3 tabs each having a UISplitViewController. Now 0th tab is selected. if I switch the tab (i.e from 0th to 1st),and then I switch back (i.e from 1st to 0th). So Please suggest me a way to find that My 0th's Tab UISplitViewController needs to know that the control is back to it's Tab.
Upvotes: 1
Views: 79
Reputation: 1956
Implement viewWillAppear
for the UITableViewController
of the 0th tab (or any suitable tab). This will be called when it becomes active.
Upvotes: 1
Reputation: 2446
You need implement UITabBarControllerDelegate methods
- tabBarController:didSelectViewController:
for more details please look documentation
Upvotes: 0