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 Objective-C Basics (Retired) Introduction to Objective-C From Structs to Objects

wilsonkwan
wilsonkwan
3,174 Points

Tutorial question on From Structs to Objects

Hi, I'm confuse at the video 6:08 onward: "We have our setter and we have our getter (for radius). Let's do the same thing for center...."

for the above mention, "Let's do the same thing for the center" Do we code the center in the same script or different? as I refer to the video it's showing the same coding file.

Thank you.

2 Answers

O that's weird in the video he starts in the .m (implementation) then taps what looks like the same file but he is actually switching to the .h (header). good catch, i didn't see that. P.S. in your question you say same script, it's actually referred to as a file.

hope this helps, Kai.

wilsonkwan
wilsonkwan
3,174 Points

Yes Kai you are right. I got it after number of time reviews (test my patient). He should assume nothing to detail in his demo instead "silently" switching around the file. Confuse to newbie!

exactly

Andrew Brotherton
Andrew Brotherton
7,515 Points

I had the same problem watching it, is there anyway you could fix the video where he could possibly tell you where he is switching so that we know? I try and follow and do the steps he is doing but when you don't know when he is changing from different files you finish up and have the code and it doesn't work.