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 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.