Welcome to the Treehouse Community
Looking to learn something new?
I don't understand what is wrong with my code for this challenge.
@implementation THViewController : UIViewController
- (IBAction)buttonPressed; @end;
Thanks! The question is:
Assume we are creating an app to display random quotes. So far our app has a label and a button that have been added to the view. We need to create an 'IBAction' for our button. Please define a method called 'buttonPressed' and make sure it returns an 'IBAction'.
That didn't clear the Quiz parser.
The code I initially wrote works in Xcode but not in the answer to the quiz. I'm confused!