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

Code Challenge IBActions error - Swift first iPhone App

Completely confused where I went wrong! Here is my code:

class viewController: UIViewController {

@IBOutlet weak var quoteLabel: UILabel!

@IBAction func quoteButtonPressed() {
    //Your code here!
    quoteLabel.text = "A stitch in time saves nine lives."

}

}

Thanks heaps in advance!!! :) (:

3 Answers

oh sorry i didnt see it but you do have an error, remember that the tasks take their instructions to literal and you have an extra word it should only say

"A stitch in time saves nine."

so just take away "lives"

thats an issue on the challenge just erase the note in the code and paste quoteLabel.text = "A stitch in time saves nine lives." there that worked for me

Thanks for that speedy reply though when Tried it and reloaded the page still no Congrats just plain wrong error!

YES!!!!!!!!!!!!!!!!!!!!!!!! THANK YOU SOOOOOOOOOOO MUCH!!!!! YES! YES! YES! :) (: THANK YOU FOR TAHT SPEEDY REPLY!!!

Anytime :) here to help