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
Ryan Carter
375 PointsButtons and IBAction Video Error
Hi Amit/Team,
I'm currently working through the iOS tutorials and i've gotten upto 'Buttons and IBAction Video Error'
At around 6:35 in you choose a dropdown with the value UIButton and when you click connect it adds in the code...I'm doing exactly the same steps, but the code i'm seeing is different.
Here's a screenshot - http://bit.ly/11xbz2W
I look forward to hearing from you
3 Answers
Ernest Grzybowski
Treehouse Project ReviewerIf you are following the directions exactly from 5:20 to 6:37 in the video then you are fine. I believe this is just an update in Xcode, which makes it a little daunting for beginners since stuff has changed a little. The other thing you may encounter that has changed (that hasn't been updated in the videos yet) is @synthesize. See it here: https://teamtreehouse.com/forum/when-to-synthesize?topic=iOS
Ryan Carter
375 PointsHi Ernest,
Many thanks for the reply, I'm just worried that the change of code may affect the application down the line. i managed to get past the bit detailed in my first post but i'm having some problems getting past the next video now.
Heres my ViewController.m file and the console so you can see the error - https://dl.dropboxusercontent.com/u/227304/Screen%20Shot%202013-06-08%20at%2015.21.09.png
and here's my viewcontroller.h file so you can see my code - https://dl.dropboxusercontent.com/u/227304/Screen%20Shot%202013-06-08%20at%2015.23.13.png
Can you see anything wrong with what i'm doing?
Ernest Grzybowski
Treehouse Project ReviewerJust quickly looking at it, it looks correct? What error are you getting?
Ryan Carter
375 PointsI started again and it worked this time - i'd still be interested to see if anyone can see anything wrong with that code though!
Ernest Grzybowski
Treehouse Project ReviewerWell, compare the code you have now, to the code that you had before (your screenshots). Do you see anything different? Looking at code sometimes isn't the best solution to try and detect a problem. Were you getting any error message?