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 Build a Simple iPhone App (iOS7) Getting Started Assign String to a Label

Ryan Donaldson
Ryan Donaldson
5,306 Points

Hello, 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

You 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
Ryan Donaldson
5,306 Points

Sorry for not responding earlier, that helped. Thanks very much!