I created UIViewControllers in storyboard and I connect the aside class like FirstViewController. I created childs in main controller but when call the controllers, all lifecycle is working but the settings that I change in the storyboard (view background colors as you can see) there is nothing happen. I have three UIViewController and they both all have different colors. But when I run, every UIViewControllers is same.


The view controllers are connected to the class and these class are working but there is nothing change. How can I fix this ?
I am having the same issue. Please help.
Hi all!
you need to instantiate your viewcontrollers via storyboard:
override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let childOneVC = storyboard.instantiateViewController(withIdentifier: "StudentInfo")
let childTwoVC = storyboard.instantiateViewController(withIdentifier: "SiblingInfo")
return [childOneVC, childTwoVC]
}
and in your view controller add the following:
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
@rauluranga
Thanks, It worked.
@rauluranga Thanks
can i know how to set title.
please add this to Read me file. I was searching for one day...
Most helpful comment
Hi all!
you need to instantiate your viewcontrollers via storyboard:
and in your view controller add the following: