{"id":5083,"date":"2014-03-30T18:42:22","date_gmt":"2014-03-30T18:42:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ios-setvalueforundefinedkey-problem-on-a-subview-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:42:22","modified_gmt":"2014-03-30T18:42:22","slug":"ios-setvalueforundefinedkey-problem-on-a-subview-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ios-setvalueforundefinedkey-problem-on-a-subview-collection-of-common-programming-errors\/","title":{"rendered":"iOS &#8211; setValue:forUndefinedKey problem on a subView-Collection of common programming errors"},"content":{"rendered":"<p>This looks like a basic IB error but it hasn&#8217;t worked out to be.<\/p>\n<pre><code>*** Terminating app due to uncaught execption 'NSUnknownKeyExecption', reason:'[ setValue:forUndfinedKey:]: this class is not key value coding-compliant for the key myImageView.' \n<\/code><\/pre>\n<ol>\n<li>\n<p>myImageView isn&#8217;t in TrailersViewController it&#8217;s in another object that is on TrailersViewController.<\/p>\n<\/li>\n<li>\n<p>myImageView does not have any IBOutlets.<\/p>\n<\/li>\n<li>\n<p>Third it seems that you can have this problem when pushing view controllers but it&#8217;s object is shown in a subview.<\/p>\n<\/li>\n<li>\n<p>myImageView is just a local variable in the object.<\/p>\n<\/li>\n<\/ol>\n<p>Also I had this working but noticed my TrailersViewController was rather leaky so I&#8217;m re-organizing it to stop those leaks.<\/p>\n<p>I&#8217;m at a loss at the moment but any other directions I could head in would be awesome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This looks like a basic IB error but it hasn&#8217;t worked out to be. *** Terminating app due to uncaught execption &#8216;NSUnknownKeyExecption&#8217;, reason:'[ setValue:forUndfinedKey:]: this class is not key value coding-compliant for the key myImageView.&#8217; myImageView isn&#8217;t in TrailersViewController it&#8217;s in another object that is on TrailersViewController. myImageView does not have any IBOutlets. Third it [&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-5083","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5083","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=5083"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5083\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}