I am learning iOS development using Obejctive-C for the last week now and I can't figure out how to communicate between controllers.
This is my storyboard:

The Routes Page View Controller is a PageViewController embedded inside the container view.
In the MapViewController I want to access the RoutesPageViewController to call some methods.
But when I make an outlet to the container view in my MapViewController and cast it to RoutesPageViewController and call a method it throws this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView items]: unrecognized selector sent to instance 0x7ff60551a300'
Which is logic because it's not a RoutesPageViewController. 
So my question is since I will encounter this issue in my further iOS development career: What are the good ways to communicate between Controllers?
Thanks in advance.
 
    