I have a viewControlle
r with containerView and
UIPageViewController
.
I'm calling editingProfile method but it won't pass into parentNewCarRequestVC. But once I make an action it passes into parentNewCarRequestVC. So please how I can initialise the parentView once the screen start.
I'm so sorry if I didn't explain my issue well.
override func viewDidAppear(animated: Bool) {
editingProfile()
}
func editingProfile(){
if let parentVC = self.parentViewController as? UIPageViewController{
if let parentNewCarRequestVC = parentVC.parentViewController as? NewCarRequestViewController{
print("DONE")
}
}
}