Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Playlist Browser with Objective-C Working With Multiple View Controllers Master-Detail User Interface

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Specifying the class on the second view controller.

In this video at about 3 minutes and 32 seconds Pasan specifies witch .h and .m files control the "PlaylistDetailViewContoller", but the files are not in my drop-down menu, what do I do?

6 Answers

If you have created the class file but they don't appear in the drop-down, make sure they both inherit from a ViewController super class, i.e. look at the first few lines of code in the .h file.

If they do, try a Product | Clean or, failing that, restart Xcode.

Else; shout - we'll see what more we can do!!

Steve.

Not at all, no. Just shut down Score and start it again.

But check the class inheritance first.

Score = Xcode - damn you, autocorrect!

:-)

Laurie Gray
Laurie Gray
23,119 Points

I have the exact same problem. Created subclass of UIViewController checked the inheritance, still not appearing in drop down. Done it several times and followed exact steps in video and restarted Xcode. Any ideas?

Laurie Gray
Laurie Gray
23,119 Points

Figured it out - delete the new view controller and make a new one and they all appear - bizarre! xD