How to Fix Error: This Class Is Not Key Value Coding-Compliant for the Key Tableview.'

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



Leave a reply



Submit