How to fix Error: this class is not key value coding-compliant for the key tableView.'
You have your storyboard set up to expect an outlet called tableView
but the actual outlet name is myTableView
.
If you delete the connection in the storyboard and reconnect to the right variable name, it should fix the problem.
this class is not key value coding-compliant for the key table Swift 3
Usually this happens when you connect an IBOutlet in InterfaceBuilder, then delete the code that defines the outlet.
The problem is that the Storyboard/XIB file tries to use KVC (Key Value Coding) to reference the property of the view controller for the outlet, but it's no longer there, so the KVC call crashes.
Look through your storyboards/xibs for a scene/view controller that has an outlet "table" that no longer exists.
App is crashing with error: this class is not key value coding-compliant for the key tableView . How to fix?
Apparently something is wrong in your nib file. Try to remove all connections first between the tableView
and other views. That means all outlets (IBOutlet
) and actions (IBAction
). Most likely the crash will be gone. Afterwards you can try to reconnect outlets and actions again, but make sure to do it correctly. Cause the error states that you are making a connection to a class with tableView
, but it does not have a key (property) called tableView
. So you might try to make a connection with the wrong class / object.
UITableViewCell Error: this class is not key value coding-compliant
The issue was fixed by checking "Inherit Module From Target" in the Custom Class section.
Related Topics
Accessing Self from Instance Properties Which Are Closures
Swiftui: Detect Finger Position on MAC Trackpad
How to Select a Contact with Abpeoplepickernavigationcontroller in Swift
Why Do Servicesubscribercellularproviders Return Nil? (In iOS 12)
Creating a Future Date in Swift with Nsdate()
Confusion Regarding Overriding Class Properties in Swift
Apple MACh-O Linker Error, After Changing Project Name
Why Does an Optional in Fast Enumeration Cause an Infinite Loop
How to Sort Objects by Its Enum Value
Swift - How to Save Audio from Avaudioengine, or from Audioplayernode? If Yes, How
How to Convert Nsurl to String in Swift
How to Launch an External Process
Swift: How Can String.Join() Work Custom Types
A Different Bridging Between Array and Dictionary