Unwind Segue Hides Tab Bar

2019-08-17 00:04发布

问题:

I have the following layout :

  1. Tab Bar Controller
  2. Nav Controller
  3. View Controller 1
  4. View Controller 2

I am currently trying to unwind segue from View Controller 2 to View Controller 1. The segue works however the tab bar disappears. Is there any way where I can force the tab bar to remain without removing the navigation controller. I have already tried the follow:

  1. setting the tabBar.isHidden property to false
  2. unchecking the hide bottom bar on push

Any other ideas? Any help will be greatly appreciated.

回答1:

If I right understand you have storyboard like this:

I don't want to be superficial, but you don't need unwindsegue. If is not like this, post your storyboard to give you the right solution.