ios - Prevent user from entering UITabBarController with login -


i have login view leads uitabbarcontroller 4 tabs. want when password empty or wrong user prompted stay in same view (the login view) , not tab bar controller. in other words want able view tab bar if password ok (non-empty , correct). possible keep showing login view until provided password correct? ideas?

as understand want disable tabbar on time.

if use uitabbarcontroller can use

- (bool)tabbarcontroller:(uitabbarcontroller *)tabbarcontroller shouldselectviewcontroller:(uiviewcontroller *)viewcontroller {     return no;  } 

or can disable userinteractionenabled

mytabbar.userinteractionenabled = no; 

you can add subview uitabbarcontroller example fade out tabbar

uiview *view = [[uiview alloc] initwithframe:self.view.bounds]; view.backgroundcolor = [uicolor blackcolor]; view.alpha = 0.3f; [self.tabbarcontroller.view addsubview:view]; [view release]; 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -