{"id":5179,"date":"2014-03-30T19:26:40","date_gmt":"2014-03-30T19:26:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/nib-from-different-class-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:26:40","modified_gmt":"2014-03-30T19:26:40","slug":"nib-from-different-class-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/nib-from-different-class-collection-of-common-programming-errors\/","title":{"rendered":"Nib from different class-Collection of common programming errors"},"content":{"rendered":"<p>I have tried several other examples, on this site and others, but for the life of me I cannot get this to work.<\/p>\n<p>I have a NIB file which is a part of the class &#8220;ViewController2&#8221;. I need to use a few of the views in this NIB file in my &#8220;ViewController1&#8221; class.<\/p>\n<p>Each time I call<\/p>\n<pre><code>[[NSBundle mainBundle]loadNibNamed:@\"ViewController2\" owner:self options:nil];\n<\/code><\/pre>\n<p>it causes a crash, saying that one of my <code>UIButton<\/code>s is not <code>KVC<\/code> compliant, but I have properly linked all the buttons and outlets, to no avail.<\/p>\n<p>Any help would be extremely appreciated! Thank you in advance!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have tried several other examples, on this site and others, but for the life of me I cannot get this to work. I have a NIB file which is a part of the class &#8220;ViewController2&#8221;. I need to use a few of the views in this NIB file in my &#8220;ViewController1&#8221; class. Each time [&hellip;]<\/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-5179","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5179"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5179\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}