Chen Li Yong
Chen Li Yong

Reputation: 6097

UITabBar disappears when NavigationController pop the view back to the said ViewController

I have a UITabBar on a UIViewController, attached from the Interface Builder, which is working fine, until I have a button that pushes another ViewController to the screen (ex: Login screen) via NavigationController.

After the other ViewController is popped, the screen returned to the original ViewController, but the TabBar is disappeared. How can I fix this? Thanks.

Upvotes: 1

Views: 396

Answers (1)

vp2698
vp2698

Reputation: 1805

-(void)viewWillAppear:(BOOL)animated{

  [self.tabBarController.tabBar setHidden:NO];
}

use This in popped controller

Upvotes: 1

Related Questions