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 trialRyan Donaldson
5,306 PointsHello, the code challenge on "Assign a String to a Label" is saying that I am declaring a method incorrectly.
The method I wrote was "- (IBAction) buttonPressed;". It is saying to correct the syntax?
1 Answer
notf0und
11,940 PointsYou have to add the function to your function, AKA the curly braces. You won't need anything in them to pass, but it's not a function without them.
Let me know if that works.
Ryan Donaldson
5,306 PointsRyan Donaldson
5,306 PointsSorry for not responding earlier, that helped. Thanks very much!