I am new to iOS development and I am stuck with a problem.
Here is my application.
What I am trying to achieve is when I click on the switch, it should update the tableview probabilities.
Here is my storyboard :
I am able to get the changed value of the switch in the DetailViewController (the controller on the left, the ancestor) with a delegate protocol. But now I have no idea on how to broadcast the new value to the DetailChartViewController. The DetailChartViewController is a UIPageViewController containing UITableViewControllers (as seen in the screenshot). So how can I broadcast a new value from child to parent to child ? Do I have to use an observer pattern ? The notification center ?
Any suggestion will be helpful.