Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

quoteLabel

Hi everyone,

I'm having trouble with the second part of the challenge,

The label for our app has an IBOutlet called 'quoteLabel' to the THViewController. Within the 'buttonPressed' method assign the following string to the 'quoteLabel' property - 'The road to success is always under construction'.

I have...

(IBAction)buttonPressed { ____.quoteLabel.text = @"The road to success is always under construction"; }

I'm not entirely sure what to put at the blank.

3 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

Since quoteLabel is a property the keyword preceding it should always be the keyword self.

Oddly, that didn't work for me. I simply replaced self in the blank but I keep getting "Bummer! You need assign the above quote to the 'text' property of quoteLabel!"

Problem solved Amit, I've figured it out. I believe it was an implementation file I removed or something. Thanks anyway though.