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

Jacob McLaws
Jacob McLaws
1,497 Points

Is 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
Alex Hedley
16,381 Points

Switching between a classโ€™s header (.h) and implementation (.m) file

Ctrl+Cmd+Up or Down

Switch between tabs Command โŒ˜ + { Command โŒ˜ + }

Alex Sanchez
PLUS
Alex Sanchez
Courses Plus Student 1,477 Points

What 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! :)