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 trialAaron Yow
Courses Plus Student 8,262 Pointsi am abit confused here
i am not really sure what am i doing wrong
class viewController: UIViewController {
@IBOutlet weak var quoteLabel: UILabel!
@IBAction func quoteButtonPressed() {
quotLabel.text = "A stitch in time saves nine"
}
}
3 Answers
Jhoan Arango
14,575 PointsHey Aaron Yow , I've modified my answer since I've noticed something.
After coming back and re-evaluating your question, I went back to the challenge and tried it again.
As mentioned by Jay, the quoteLabel has a misspelling, but what I think what you were really missing ( since Im sure you tried several times ) it's the . at the end of the sentence.
class viewController: UIViewController {
@IBOutlet weak var quoteLabel: UILabel!
@IBAction func quoteButtonPressed() {
quoteLabel.text = "A stitch in time saves nine." // Use the dot at the end of sentence.
}
}
I apologize for the wrong information before. This should allow you to continue with your challenges. Please let me know if it works.
Jay Guyll
3,261 PointsI guess I can't see all of the code so I am not sure I know what your issue is. From what I see, it looks like you might be calling the variable by the wrong name, "quoteLabel" is missing an "e" when used to assign it a string. Disregard if that is not your issue and best of luck!
Aaron Yow
Courses Plus Student 8,262 Pointsits working now out of no where thanks for the help guys :D
Aaron Yow
Courses Plus Student 8,262 PointsAaron Yow
Courses Plus Student 8,262 Pointsi gave it another try but this comes up
Bummer! You need to set the
text
attribute onquoteLabel
to "A stitch in time saves nine."Jhoan Arango
14,575 PointsJhoan Arango
14,575 PointsHi
Did you try it like this ?