Is my model all a mess?
I’m writing an iPad app with multiple views. I have a masterViewController that subviews other view controllers. Some of these subviews contain buttons.
The user clicks these buttons to change views. It is my intention that the masterViewController be responsible for changing these views. But how?
How can the masterViewController tell when the button is pressed?
@implementation subViewControllerOne
- (IBAction) switchToSubViewTwo {
//Where to I send my message?
[masterViewController myMethod] //doesn't work because I need to message the specific instance
}
You could