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 trialJay Eee
Courses Plus Student 2,442 PointsCompiler error
This is annoying... The compiler is buggy... What's wrong with the code below? The course doesn't allow me to move on... This is deal breaker.
class viewController: UIViewController {
@IBOutlet weak var quoteLabel: UILabel!
@IBAction func quoteButtonPressed() {
quoteLabel.text = "A stitch in time saves nine"
}
}
1 Answer
Greg Kaleka
39,021 PointsHi Jay!
The compiler is working just fine.
Take a very close look at what the challenge is asking for. You have a typo of sorts in your quote. For future reference, I always check my spelling, punctuation, etc. first when I get an error in my code. This isn't an error, per se, but it's the same concept. I've learned over time that it's usually me, not the computer, that's at fault :).
class viewController: UIViewController {
@IBOutlet weak var quoteLabel: UILabel!
@IBAction func quoteButtonPressed() {
quoteLabel.text = "A stitch in time saves nine." // You were just missing the period.
}
}