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 trialCaleb Kleveter
Treehouse Moderator 37,862 PointsSpecifying 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
Steve Hunter
57,712 PointsIf 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.
Caleb Kleveter
Treehouse Moderator 37,862 PointsAlright, got it!
Steve Hunter
57,712 PointsNot at all, no. Just shut down Score and start it again.
But check the class inheritance first.
Steve Hunter
57,712 PointsScore = Xcode - damn you, autocorrect!
Steve Hunter
57,712 Points:-)
Laurie Gray
23,119 PointsI 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
23,119 PointsFigured it out - delete the new view controller and make a new one and they all appear - bizarre! xD
Caleb Kleveter
Treehouse Moderator 37,862 PointsCaleb Kleveter
Treehouse Moderator 37,862 PointsYou say restart, do you mean reinstall?