I am new to iPhone development, my problem is that I have a UITabbar in my app. It will display after sign in. when I want to log out from my app, want to go back to the sign in view controller, so the tab bar should be removed from the sign in view controller shown. So how do I do that?
I tried hiding tab bars, but that didn’t work.
In appdelegate make your loginView as rootView controller, after login make your tabBar as rootView and at the time of logout remove tabBar from rootView and make loginView to as rootView.
or
in .h file
Make function to add tabBar instance
-(void)addTabBarin app delegate this method add your all view to tabBar, Dont add this as subView to window,just make it.And add your LoginView as rootViewController.
after login add tabBar as subView
and at logout button