Welcome to the Treehouse Community
Looking to learn something new?
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.