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
matt tripodi2,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:
Kevin Hein7,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.