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

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


@interface ViewController: UIViewController

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

- (IBAction)quoteButtonPressed;



@end
ViewController.m
#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";
}

@end

1 Answer

Caleb Kleveter
MOD
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!