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 trialJacob McLaws
1,497 PointsIs the instructor using a hotkey he isn't talking about?
In the iOS dev track (in the 'From Structs to Objects' video) the instructor switches between two Sphere.h views. You can see as he implements some of the sphere stuff that he's switching back and forth. I don't quite understand what is going on and why there seem to be two different views. Thanks for the help!
2 Answers
Alex Hedley
16,381 PointsSwitching between a classβs header (.h) and implementation (.m) file
Ctrl+Cmd+Up or Down
Switch between tabs Command β + { Command β + }
Alex Sanchez
Courses Plus Student 1,477 PointsWhat you see is just the instructor switching from the header file (.h) to the implementation file (.m). The problem is that you see in the left part all the time the Sphere.h highlighted but the file that he's using you can see it in the breadcrumb on the top of the code.
You will see that everytime he switch the vies he's changing the file from .h to .m
Hope it helps! :)