tahoecoop
tahoecoop

Reputation: 378

Possible to do modal segue on tab bar button press?

I have a tab bar that works as normal. However, I'd like for one of the buttons to have a view controller pop up modally, which will hide the tab bar. When it resigns, the tab bar will re-appear. I've seen this in other apps but I'm at a loss how to accomplish this. Any help is greatly appreciated, thanks!

Upvotes: 0

Views: 134

Answers (1)

CloudTuan
CloudTuan

Reputation: 91

Why not?

  1. Make segue between ViewControllers in your storyboard. You should ctrl+drag from one ViewControllers to another.
  2. In the UITabBarDelegate method tabBar:didSelectItem:(UITabBarItem *)item, implement

    [self performSegueWithIdentifier:@"segue identifier" sender:someObj];

Upvotes: 1

Related Questions