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 trialKieran Tross
8,266 PointsHow do i implement the quote label property?
This is what i have so far? the challenge states place the string within the method button pressed.
@property (strong, nonatomic) IBOutlet UILabel *quoteLabel;
-(IBAction) buttonPressed {
self.quoteLabel.text = "@The road to success is always under construction");
}
1 Answer
obey me
1,135 Points@property (strong, nonatomic) IBOutlet UILabel *quoteLabel;
-(IBAction) buttonPressed {
_quoteLabel.text = "@The road to success is always under construction";
}
// you don't need self and you had a one parenthesis at the end which wasn't supposed to be there