XLPagerTabStrip as Subview

343 views Asked by At

I am using XLPagerTabStrip I am using the the demo code attached with it. The requirement is to use the twitter layout and use it as a subview in another controller. I tried this by creating a new scene, added a UIView and in the code behind I am adding the navigation controller as subview of the UIView. The navigation controller and its title bar appears but its data is not appearing and neither the navigation is working.

    let storyboard = UIStoryboard(name: "Storyboard", bundle: nil)
    let navigationController = storyboard.instantiateViewController(withIdentifier: "navcontroller") as! NavController
    navigationController.view.layoutSubviews()
    container.addSubview(navigationController.view)

Also if any one could point out that how to make the navigation bar appear at bottom. Any help would be highly appreciated

0

There are 0 answers