{"id":112,"date":"2012-05-30T18:15:03","date_gmt":"2012-05-30T10:15:03","guid":{"rendered":"https:\/\/antijava.prjlife.com\/?p=112"},"modified":"2018-12-20T20:29:29","modified_gmt":"2018-12-20T12:29:29","slug":"112","status":"publish","type":"post","link":"https:\/\/antijava.prjlife.com\/?p=112","title":{"rendered":""},"content":{"rendered":"<p>[<UIViewController 0x.......> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key xxxxxxxx.<\/p>\n<p>If you google this message, there&#8217;re a lot of solutions.<\/p>\n<p>Here I provide another different situation.<\/p>\n<p>Suppose there&#8217;s a UIView as follow :<br \/>\nOnePageViewController.h<br \/>\nOnePageViewController.m<br \/>\nOnePageViewController.xib<\/p>\n<p>When you adopt the UITabBarControl,<br \/>\nin the Interface Builder, you specify two parameters for each TabBar item, like follows :<\/p>\n<p>1.The Nib Name<br \/>\n<a href=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Nib-Name.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Nib-Name-300x79.png\" alt=\"\" title=\"Nib Name\" width=\"300\" height=\"79\" class=\"alignnone size-medium wp-image-113\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Nib-Name-300x79.png 300w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Nib-Name.png 1017w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>2.The Custom Class Name<br \/>\nIt should be &#8220;OnePageViewController&#8221;, but if you forgot to set this and let it be the default value, like this<br \/>\n<a href=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Class.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Class-300x75.png\" alt=\"\" title=\"Class\" width=\"300\" height=\"75\" class=\"alignnone size-medium wp-image-114\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Class-300x75.png 300w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2012\/05\/Class.png 1019w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Then you&#8217;ll get this error message.<\/p>\n<p>To fix it, just change The Custom Class Name to &#8220;OnePageViewController&#8221; and it should be fixed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key xxxxxxxx. If you google this message, there&#8217;re a lot of solutions. Here I provide another different situation. Suppose there&#8217;s a UIView as follow : OnePageViewController.h OnePageViewController.m OnePageViewController.xib When &hellip; <a href=\"https:\/\/antijava.prjlife.com\/?p=112\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":0,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}