Reputation: 2708
I drag a UITabBarController from Object library to the storyboard.
From firstViewController I want to swipe to another viewController named CustomController using a swipe gesture recognizer and retain the tab bar on CustomController when it is instantiated.
The problem is that once the segue is performed from firstViewController to CustomController, the tab bar no longer shows at the bottom of Custom Controller and it does not swipe back to firstViewController.
This is the outcome I would like to achieve. Please advise best route.
Upvotes: 2
Views: 268
Reputation: 7409
You can use ContainerView to view your view controller. when you click on segment 1 you can set your firstviewcontroller to containerview and when you click on segment 2 you need to replace customviewcontroller in containerview. you do like this you will not lose your tab bar viewcontroller. For Swipe gesture, you can add it later if you want. Hope this can help you.
Upvotes: 2