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 What is an IBAction?

No console log output - buttonPressed

I'm pretty sure I've followed the instructions exactly but when I run my project at the end of this video, I don't get any kind of console output. I've tried deleting all references to buttonPressed and reconnecting it to my button but to no avail.

I notice that the video shows console output before the actual button press, I don't have that either. The console log in my Xcode window is completely blank. I'm sure I'm missing something obvious! Has anyone run into this?

2 Answers

Hello Jordan,

When you deleted the references to the button, did you do so in the code and in the storyboard? You might need to make sure that all the connections to the button created in xcode and the storyboard are deleted. Then try recreating the IBAction for the button.

I'm not sure what I did differently in removing everything (I thought I'd done that before as well), but this time it worked. Thanks for your help!