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 Swift Working With Multiple View Controllers Segues

Justin Bane
Justin Bane
7,850 Points

Renaming classes and creating the new class - they are not selectable in the Class dropdown on the Identity Inspector

here is the error I get now when trying to run the program

Unknown class PlaylistMasterViewController in Interface Builder file.

1 Answer

I'm not sure how you went about changing the name of your class?? or class's .swift file name?? but... Make sure the name of the class is changed in the project navigator on the left pane and in the actual .swift file at the top where you declare "class PlaylistMasterViewController: UIViewController {". After that, go to the top tool bar in Xcode and under 'product' select 'clean'. I hope that helps.