I am using TabBarController with two tabs one is InputViewController and another tab is TableViewController. In this both viewController allocated in appDelegate file and added TabBarController. Now not able to get TableViewController instance in InputViewController for passing textfield value. how to get instance TabBarController instance in first tab InputViewController
I am using TabBarController with two tabs one is InputViewController and another tab is
Share
You can access a instance of item (
viewController,navigationController) that you assigned on a tab ofUITabBarControllerlike it –Getting First Tab instance –
You can get any tab’s
viewControllerinstance by using above code. Just change the index.