Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable user interaction on tabBar

I am displaying an image right after the app didFinishLaunchingWithOptions, the app consists in a tab bar, and in the first view i have some buttons. The user can only continue to use the app after he press the button in that first image, the problem is, some users can interact with the tab bar, and the buttons in the first view even with the image above all. How i can completely disable the user interaction on those buttons and in the tabBar, and enable then only when the button is pressed and the image disapear?

like image 609
darkman Avatar asked Dec 18 '12 18:12

darkman


1 Answers

To disable:

UITabBarController.tabBar.userInteractionEnabled = NO;

To enable:

UITabBarController.tabBar.userInteractionEnabled = YES;
like image 105
bibo bode Avatar answered Sep 30 '22 18:09

bibo bode