PDA

View Full Version : Communication between flipsideview and mainview in a utility application




tomerw
Apr 10, 2009, 02:18 PM
Hello,
I'm writing my first iphone app right now, based on a "utility application" project.

Everything went ok until now, But I'm encountering a design issue.

I coded all the outlets and actions of the views into the UIViews themselves - MainView and FlipsideView. Looked like a good seperation.

However, I now want an action in the Flipside view to manipulate the Main view, but the views are not aware of each other.

I can easily cross-reference the controllers because they're explicitly referenced in RootController, but I'm not sure how to call the controller from within the view.

I would like to know what is the convention in this matter, Should I have put the outlets and actions in the controllers ? If so, why provide me (by default) the views xib files and not the controller ones.

Thanks in advance.