iOS Build a Simple iPhone App with Objective-C Views and View Controllers IBActions and IBOutlets

Why isnt this working...

I dont know why it isnt working

#import "UIViewController.h"
#import "UILabel.h"

@interface ViewController: UIViewController

@property (strong, nonatomic) IBOutlet UILabel *quoteLabel;

- (IBAction)quoteButtonPressed;

#import "ViewController.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.

- (IBAction)quoteButtonPressed {
self.quoteLabel.text =@"A stitch in time saves nine";


1 Answer

Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,860 Points

This might sound silly (I missed it), but you are missing the period at the end of the quote. Hope it helps!