{"id":4190,"date":"2014-03-30T09:08:54","date_gmt":"2014-03-30T09:08:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/connecting-an-iboutlet-to-a-view-within-a-scrollview-within-a-tab-view-crashes-app-any-ideas-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:08:54","modified_gmt":"2014-03-30T09:08:54","slug":"connecting-an-iboutlet-to-a-view-within-a-scrollview-within-a-tab-view-crashes-app-any-ideas-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/connecting-an-iboutlet-to-a-view-within-a-scrollview-within-a-tab-view-crashes-app-any-ideas-collection-of-common-programming-errors\/","title":{"rendered":"Connecting an IBOutlet to a view within a scrollview within a tab view crashes app. Any ideas?-Collection of common programming errors"},"content":{"rendered":"<p>I used the tabview setup to create an app that has several tabs. One tab has a UIScrollView on it which loads 12 different views into 12 pages. I tried adding a button and imageview to one of the views and now it crashes. I&#8217;ve pored over every single question on here I can find, and have tried every suggested solution, but to no avail. The error that I get is the famous &#8220;this class is not key value coding-compliant for the key foo&#8221; error. As with everyone else who had this problem, if I disconnect the outlet, it works fine. I&#8217;ve checked and rechecked the class for the nib and it points to the right place.<\/p>\n<p>So I&#8217;m not even sure where to go next.<\/p>\n<p>I could post some code, but I don&#8217;t even know what code would be helpful to post. I&#8217;m hoping someone just says, &#8220;Um yeah, you can&#8217;t have a scroll view with multiple views in it and expect to have functionality on each page.&#8221; That would be helpful!<\/p>\n<p>Page2.h:<\/p>\n<pre><code>#import \n<\/code><\/pre>\n<p>@interface Page2 : UIViewController {<\/p>\n<pre><code>IBOutlet UIImageView *infoImage;\n<\/code><\/pre>\n<p>}<\/p>\n<p>@property (retain, nonatomic) UIImageView *infoImage;<\/p>\n<ul>\n<li>(IBAction) showInfo:(id)sender;<\/li>\n<\/ul>\n<p>@end<\/p>\n<p>Page2.m:<\/p>\n<pre><code>- (IBAction)showInfo:(id)sender {\n\n\/\/ do something please!\n<\/code><\/pre>\n<p>}<\/p>\n<p>Then in the nib file I CTRL-dragged from &#8220;touch-up inside&#8221; on my button to the Files Owner and chose &#8220;showInfo&#8221; &#8230; and I CTRL-dragged from Files Owner down to my UIImageView and chose infoImage.<\/p>\n<p>CRASH<\/p>\n<p>I am not cool enough to insert an image: http:\/\/i.stack.imgur.com\/KjWhk.png<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used the tabview setup to create an app that has several tabs. One tab has a UIScrollView on it which loads 12 different views into 12 pages. I tried adding a button and imageview to one of the views and now it crashes. I&#8217;ve pored over every single question on here I can find, [&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-4190","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4190","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=4190"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4190\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}