I have a tabbarcontroller and it has 3 tabbaritems. in the first screen, there is a button and upon clicking that button i need to deactivate all the tababritems in the application.
How can I deactivate all the tabbaritems in the application programmatically?
You can set a BOOL property on your ViewController that has the button.
Then also implement the UITabBarControllerDelegate protocol in your view controller.
Set your view controller as the tab bar delegate on the tab bar.
Then when the button is pressed set the BOOL property to TRUE/FALSE accordingly.
In your ViewController also implement the following protocol method in your view controller (See reference for UITabBarControllerDelegate)