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 Using a Navigation Controller With Segues Modifying the UI

matt tripodi
matt tripodi
2,673 Points

Problem with Algorythm app

Can someone please explain why I keep getting this error and the app keeps crashing whenever I hit the button, I have all the code exactly the same as in the video.

2015-03-21 21:29:03.058 Algorythm[5356:539229] Unknown class _TtC9Algorythm42PlaylistDetailViewContorllerViewController in Interface Builder file. 2015-03-21 21:29:03.064 Algorythm[5356:539229] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fe00bf86b60> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key buttonPressLabel.' *** First throw call stack:

3 Answers

heinz meza
heinz meza
4,788 Points

same here ...nothing happen. My code Keeps crashing. Any help please

Kevin Hein
Kevin Hein
7,201 Points

Try deleting the buttonPressLabel from PlaylistDetailViewController, and control dragging it back onto the PlaylistDetailViewController. double check to be sure that its a UILabel! (and be sure that you grabbed the label when doing this). This fixed the problem for me.

Ethan Roode
Ethan Roode
6,674 Points

try cleaning your project, Product> Clean or Shift-Command-K