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 trialJudy Tsai
6,376 PointsMy button is not being recognized as a button. It does not blink when I click on it as shown in video...
Hi, I follow the instruction to create the button.
But when I run the app, it does not blink/flash when I click on it. In your video, it blink/flash when you click on it as it is a button trying to do something. Mine just sit there.
Any reason why and how to fix this? Thank you!
Judy Tsai
6,376 PointsHi, Andres,
Thank you for your response. I don't really have started any coding yet, just working on adding a button to the the storyboard and noticed the button is not working.
I have the project packaged in a zip file I can attach but I don't see an option to do so in the forum. Any suggestion?
Sorry for the trouble as I am also new to treehouse as well and am still getting used to everything.
Again, thank you for your help!!
Andres Oliva
7,810 PointsHonestly I don't have any idea what could be wrong with your button :/ Maybe you dragged a label instead of a button, but I don't think that's the case
2 Answers
Daniel Templin
5,293 PointsAre you trying to click on it in the simulator or in Interface Builder? I just opened a blank project and tossed a button on there just to make sure that there wasn't a need to do anything else, and as long as you're trying to interact with your interface in the simulator then you should have any buttons/text fields work just fine (at least for the purpose of interacting; they obviously won't do much until they have some code running behind them). Clicking on elements in Interface Builder just lets you manipulate them but you won't be able to simulate the button pushes.
Judy Tsai
6,376 PointsHi, Daniel, I was clicking in the simulator. I still am not sure what happened. However, I created a brand new project, add the button in again, and it worked this time.
Thanks for all your help, Daniel & Andres!!
Andres Oliva
7,810 PointsAndres Oliva
7,810 PointsCan you share your code?