1

I always make my apps using Storyboard. But at the moment he is giving me some difficulties.
You can see a screenshot of my storyboard below here.

The problem is situated in the right hand corner. There I have a UItableview in my viewcontroller. When I push on a cell. I do a push segue to the next view. But when I this my tabbar at the bottom disappears.

Also in the view with my UItableview I defined a left and a right bar button inside my navigationbar. When I segue those two buttons disappears also and I get a back button (and I want those two buttons back from the previous viewController and get rid of the backbutton.)

How I can fix this problem??

I have tried this:

 self.tabBarController.navigationItem.hidesBackButton = YES;
    self.tabBarController.tabBar.hidden = NO;

Thanks in advance!

Kind regards

enter image description here

Shekhar Gupta
  • 6,206
  • 3
  • 30
  • 50
Steaphann
  • 2,797
  • 6
  • 50
  • 109

1 Answers1

1

I have always used separate NavigationController's for each branch of a TabBarController. This may be causing your problem. Try embedding a Nav Controller in each of the 4 ViewControllers hooked to the TabBarController.

Also, make sure to call:

self.tabBarController.navigationItem.hidesBackButton = YES;

After viewDidLoad in the ViewController you want this behavior. Then AFTER you call this, you will need to instantiate the two buttons you want to use instead.

EDIT - Check out this answer for an example of using a Protocol and Delegation to login your user.

Community
  • 1
  • 1
LJ Wilson
  • 14,445
  • 5
  • 38
  • 62