Removing TabBar Controller when UIBar Button Clicked
In my Application first i have some Login View Controller,after login with button action am moving to Tabbar Controller with Four tabs. my problem is i need to quit that tabbar controller when i click on barbutton and need to come to that loginViewController.please anybody help me in this.actually i have tried some methods but i dint get that. Thanks in Advance for Valuable Solution to problem.
In appDelegate place your tabBar and in side loginView ,add this tabBar
TUTAppDelegate *appdelegte =(TUTAppDelegate*)[[UIApplication sharedApplication]delegate]; [[appdelegte window]addSubview:[[appdelegte motivationalTabBar]view]];
On button press remove TabBar
TUTAppDelegate *appDelegate = (TUTAppDelegate *)[[UIApplication sharedApplication] delegate]; [[[appDelegate motivationalTabBar] view]removeFromSuperview]