I'm creating one UIViewController that operates a calculator interface, while another UIViewController deals with drawing a graph.
The calculator prompts the graph to redraw itself when the user pushes the graph button. The graph then performs a call back to a protocol method on the calculator to get the y value for each given x coordinate.
I'm wondering what the standard way of handling this kind of communication is? I feel like I should be able to call something akin to setNeedsDisplay on a UIViewController (I'm aware this is actually only a UIView method), but I have a feeling I'm going to have to write another protocol with an similar method. Is there some kind of updateViewController method I'm missing?
Ideally I'd like my Calculator UIViewController to only know the graph as a UIViewController while the graph knows the Calculator through a protocol I define.