Hello, newbie here. This is an iPhone utility project.
First things first. I have a protocol that is this:
@protocol FlipsideViewControllerDelegate
- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller;
- (void)updateLabels:(NSString *)text :(BOOL)isOn;
@end
I implement this protocol in my MainViewController by doing this:
- (void)updateLabels:(NSString *)text :(BOOL)isOn {
[nameLabel setText:text];
if (isOn)
[onLabel setText:(@"ON")];
else
[onLabel setText:(@"OFF")];
}
Now I'm wanting to use the updateLabels
method in my FlipsideViewController in a method called buttonClick
. How would I refer to the updateLabels method located in MainViewController?