I have been using the XLPagerTabStrip to effectively create a tab bar at the top of my view controller, with mutiple child view controllers displayed within it (source : https://github.com/xmartlabs/XLPagerTabStrip)
Lets call these child view controllers A1, B1 and C1. Within the child view controllers are table view which once tapped segue to a new view controller (A2). I want to be able to get from A2 back to the first view controller displaying the child view controllers. I have tried add a navigation bar to both the child view controllers and using the navigationController?.popToRootViewControllerAnimated(true)
method, but when a button containing this code is pressed nothing happens. I have also tried embedding a navigation controller within the mother view controller, but this also doesnt work (not sure if this is because the child view controllers A1, B1 and C1 are not connected to the mother view controller within the storyboard).
Any help would be greatly appreciated.