This is for the specific error: NSUnknownKeyException in iOS (Swift and Objective-C)
Questions tagged [nsunknownkeyexception]
81 questions
0
votes
0 answers
NSUnknownKeyException in swift while outlets and file's owner are set
I been trying to get to get up to speed with swift, and it not going very well for the moment.
I tried to make a custom UIview on a nib that basically has 2 labels to show date and month very simple. I set up the xib file attached the outlets set…

Pascale Beaulac
- 889
- 10
- 28
0
votes
1 answer
Terminating app due to uncaught exception 'NSUnknownKeyException' after deleting IBAction
I recently added an IBAction to my ViewController by Ctrl+Dragging a button into the .h file of the ViewController. I then deleted the line from the .h file, as I realised I didn't need it, but I believe this has caused the following error when I…

Isaac A
- 361
- 2
- 24
0
votes
1 answer
I'm getting valueForUndefinedKey:]: this class is not key value coding-compliant for the key error
I'm looping through an array of objects then getting a value of key "resort" and storing that in another array if it doesn't already exist.
My NSLog result shows that the string is there. However I get the error mentioned in the title of this…

LondonGuy
- 10,778
- 11
- 79
- 151
0
votes
3 answers
iOS Simulator is black on app execution
I am running xcode 5.1.1 and have been trying to learn objective C / iOS development. Right now whenever I try to run my code on the emulator (I do not have an actual device atm) it comes up with a black screen. Code can be found here. Compiling…

Terryn
- 17
- 5
0
votes
2 answers
Exception on coding-compilant value for non-existing button
I have performed some changes on my storyboard file and deleted a bar button. Before deleting, I removed all the connections in both storyboards for both screens.
Next, I deleted all the code, connected with this button.
Now I'm getting an error…

vladfau
- 1,003
- 11
- 22
0
votes
2 answers
Why am I getting an error say this class is not KVC compliant for the key listingDescription?
I am getting the following errors:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
'[ setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key…

suntzu
- 65
- 3
- 13
0
votes
2 answers
NSUnknownKeyException for dividing integers?
My goal is to ask for two inputs and then divide one by the other. I have textfields that are inputting the two values, an ibaction button and then a uilabel to display the values.
#import "ViewController.h"
@interface ViewController…

Akbapu
- 779
- 2
- 6
- 14
-1
votes
1 answer
Setting a value in CoreData crashes application
Okay, so I've done a ton of searching and everything I'm finding seems to have to do with View Controllers and the links on them not working or not being connected. That is not my problem. I have an app that's using CoreData to keep tabs on a list…

TerrorByte
- 49
- 5
-1
votes
1 answer
does anyone know how to go about fixing this issue i ran into?
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key emailField.'
My project is on Xcode 9, using Swift 4 and firebase... I'm sorry…

Brandon
- 41
- 5
-1
votes
1 answer
Uncaught exception 'NSUnknownKeyException'
I'm simply fetching data from youtube API and show it on tableView. It was working fine just before Swift 3 upgrade but now it gives me an error.
I'm able to print JSON successfully but cannot have the title, description and the imageView displayed.…

Burak Pusat
- 41
- 7
-1
votes
1 answer
swift: NSUnknownException storyboard issue
Here is the error:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key answerFour.'
Basically I have connected many UITextFields…

Malexc
- 82
- 7
-1
votes
2 answers
XCode 7 iOS 9 produces 'Thread 1: signal SIGABRT' error in main.m
When I run my app, it produces the Thread 1: signal SIGBART error message with the detail below:
TappingGame[767:9324] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[…

peterbonar
- 559
- 3
- 6
- 24
-1
votes
1 answer
Don't know why my app is crashing
I am very new to swift, extremely new, and I will probably feel like an idiot for asking this question. My very simple goal is that when my button is tapped the button's title will disappear, but unfortunately the app is crashing every time I run it…

lucambd
- 315
- 1
- 3
- 7
-1
votes
2 answers
Terminating app due to uncaught exception 'NSUnknownKeyException',
I am sorry for posting this, but i am beyond fried and cant figure out whats wrong with this, i am posting images, its a very simple app.
I am trying to have a reusable Prototype Cell.
I can't have Simple TableViewController, because i have to…

Kashif Zaidi
- 531
- 1
- 6
- 15
-2
votes
2 answers
NSUnkownkKeyException Xcode
Yesterday I added a new class and created a IBOutlet with a label called labelDays. I then deleted that class now I get this exception. I think that it is because it is looking for the label but since I deleted the class it can't find it. I am…

alan1099
- 1