Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NSUnknownKeyException', reason: '[<ViewController 0x7f838056d7a0> setValue:forUndefinedKey:] #3

Open
tammarat opened this issue Nov 3, 2014 · 2 comments

Comments

@tammarat
Copy link

tammarat commented Nov 3, 2014

I have followed this tutorial: https://github.com/ShinobiControls/iOS7-day-by-day/blob/master/15-core-image-filters/15-core-image-filters.md in the section of QR CODE Generation.

After I clicked run, the program open and I can see the welcome image of an app and then it stop there.

on the IDE coding section, it direct me to the main.m and highlight on a line of code which is " return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));" and says Thread 1:signal SIGABRT

on the LOG section it says this "2014-11-03 11:30:01.172 qrcode[957:24207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x7fc652cb9cc0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key outputImageView.'"

how can I fix this please help me. t-t

@sammyd
Copy link
Contributor

sammyd commented Nov 3, 2014

This looks like you haven't created an IBOutlet on your View Controller. The code is trying to set the image property on outputImageView (which is accessed through KVC), but since an outlet either doesn't exist, or isn't connected up, then it isn't managing to do this.

@tammarat
Copy link
Author

tammarat commented Nov 3, 2014

thank you very much ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants