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!

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

IBAction as the return type

My problem is return the IBAction I already make the method for buttonPressed but when i try to implmentation the buttonPressed i stuck

1 Answer

Hi Abdullah,

I'm not sure what the problem is here - adding your code might help us figure out exactly what's wrong.

However, the first part of the code challenge asks you to create the buttonPressed method with the IBAction as a return type.

This would look something like this:

- (IBAction)buttonPressed {


I hope that helps. If not, post your code and we'll see what we can do!