[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key xxxxxxxx.

If you google this message, there’re a lot of solutions.

Here I provide another different situation.

Suppose there’s a UIView as follow :
OnePageViewController.h
OnePageViewController.m
OnePageViewController.xib

When you adopt the UITabBarControl,
in the Interface Builder, you specify two parameters for each TabBar item, like follows :

1.The Nib Name

2.The Custom Class Name
It should be “OnePageViewController”, but if you forgot to set this and let it be the default value, like this

Then you’ll get this error message.

To fix it, just change The Custom Class Name to “OnePageViewController” and it should be fixed.

By admin