I cant seem to find a specific answer to my direct dilemma.
I have a UIPageViewController
that programmatically loads through 6 child UIView
scenes. They host various stages of an 'add' element functionality. Currently the PageViewController
Class adds each child view into an array and instantiates them when required with:
storyboard?.instantiateViewControllerWithIdentifier("editViewController")
The natural delegate is set-up to swipe between each child scene and therefore no "prepareForSegue
" function is run.
As the pages swipe, a new scene with different identifier is instantiated.
From my reading, I am now attempting to set-up a delegate that takes an instance of a Dictionary, that reads/stores input from each stage (different child UIPageView
scenes) of the process and updates the Dictionary.
I am using the "viewWillDissapear
" and "viewWillAppear
" methods to help set-up the passing data into the delegate.
Unfortunately I am running into problems, and due to my lack of experience, and not much on this specific problem, I'm needing help!
Main question:
Can I set-up a data delegate in the UIPageViewController
class, that 'talks' or can be accessed by the child UIViews
?
OR
Does anyone know of a good solution to pass my Dictionary from child to child to child????