{"id":4200,"date":"2014-03-30T09:14:42","date_gmt":"2014-03-30T09:14:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-iboutletcollection-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:14:42","modified_gmt":"2014-03-30T09:14:42","slug":"problem-about-iboutletcollection-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-iboutletcollection-collection-of-common-programming-errors\/","title":{"rendered":"problem about iboutletcollection-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2e19cf3543cd496b28f3f65285625116?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJsdodgers<br \/>\narrays uiswitch iboutlet iboutletcollection<br \/>\nI&#8217;m using an IBOutletCollection of switches to set them disabled. After create the IBOutletCollection, I made a for cycle to set them disabled:for (arraySwitchCounter = 0; arraySwitchCounter &lt; _switchCollection.count; arraySwitchCounter ++) {UISwitch * disabledSwitch = [ _switchCollection objectAtIndex: arraySwitchCounter ];[disabledSwitch setEnabled: NO]; }but it crash on startup, I think trouble is on second row but I don&#8217;t know what&#8230;how can I solve? Thank you!<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jsdodgers arrays uiswitch iboutlet iboutletcollection I&#8217;m using an IBOutletCollection of switches to set them disabled. After create the IBOutletCollection, I made a for cycle to set them disabled:for (arraySwitchCounter = 0; arraySwitchCounter &lt; _switchCollection.count; arraySwitchCounter ++) {UISwitch * disabledSwitch = [ _switchCollection objectAtIndex: arraySwitchCounter ];[disabledSwitch setEnabled: NO]; }but it crash on startup, I think trouble [&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-4200","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4200","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=4200"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4200\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}