I\'m just learning how to code so thanks for your patience on this simple question.
Here\'s my code:
- (IBAction)buttonWasPressed:(id)sender {
in objective-c you can't compare strings using "==", instead you should use the method isEqualToString from the NSString class to compare a string with another.
isEqualToString
if ([buttonName isEqualToString: @"Button 1"]) { // do something }