{"id":4950,"date":"2014-03-30T17:11:55","date_gmt":"2014-03-30T17:11:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/view-controller-uses-one-nib-fine-but-crashes-with-another-collection-of-common-programming-errors\/"},"modified":"2014-03-30T17:11:55","modified_gmt":"2014-03-30T17:11:55","slug":"view-controller-uses-one-nib-fine-but-crashes-with-another-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/view-controller-uses-one-nib-fine-but-crashes-with-another-collection-of-common-programming-errors\/","title":{"rendered":"View controller uses one nib fine but crashes with another-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m working on a universal app and the iPhone version works just fine. I created a new nib for iPad and set the files owner to be the viewcontroller class. The I connected all the IBOutlets and IBActions. When I run the app on an iPad (and in the iPad simulator) it crashes when I touch any of the controls. I tried setting break points in the IBActions for each but it doesn&#8217;t even make it to those before the crash happens. What&#8217;s going on?<\/p>\n<p>Backtrace: * thread #1: tid = 0x1f03, 0x0189809b libobjc.A.dylib<code>objc_msgSend + 15, stop reason = EXC_BAD_ACCESS (code=2, address=0x15) frame #0: 0x0189809b libobjc.A.dylib<\/code>objc_msgSend + 15 frame #1: 0x0020f14e UIKit<code>-[UIApplication sendAction:to:from:forEvent:] + 96 frame #2: 0x0020f0e6 UIKit<\/code>-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61 frame #3: 0x002b5ade UIKit<code>-[UIControl sendAction:to:forEvent:] + 66 frame #4: 0x002b5fa7 UIKit<\/code>-[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503 frame #5: 0x002b5b13 UIKit<code>-[UIControl sendActionsForControlEvents:] + 48 frame #6: 0x00304462 UIKit<\/code>-[UISegmentedControl _setSelectedSegmentIndex:notify:] + 684 frame #7: 0x00305dd0 UIKit<code>-[UISegmentedControl touchesBegan:withEvent:] + 1026 frame #8: 0x002342cf UIKit<\/code>-[UIWindow <em>sendTouchesForEvent:] + 272 frame #9: 0x002345e6 UIKit<code>-[UIWindow sendEvent:] + 273 frame #10: 0x0021adc4 UIKit<\/code>-[UIApplication sendEvent:] + 464 frame #11: 0x0020e634 UIKit<code>_UIApplicationHandleEvent + 8196 frame #12: 0x021c0ef5 GraphicsServices<\/code>PurpleEventCallback + 1274 frame #13: 0x012a1195 CoreFoundation<code>__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53 frame #14: 0x01205ff2 CoreFoundation<\/code><\/em>_CFRunLoopDoSource1 + 146 frame #15: 0x012048da CoreFoundation<code>__CFRunLoopRun + 2218 frame #16: 0x01203d84 CoreFoundation<\/code>CFRunLoopRunSpecific + 212 frame #17: 0x01203c9b CoreFoundation<code>CFRunLoopRunInMode + 123 frame #18: 0x021bf7d8 GraphicsServices<\/code>GSEventRunModal + 190 frame #19: 0x021bf88a GraphicsServices<code>GSEventRun + 103 frame #20: 0x0020c626 UIKit<\/code>UIApplicationMain + 1163 frame #21: 0x00001d8d gravity`main + 141 at main.m:16<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on a universal app and the iPhone version works just fine. I created a new nib for iPad and set the files owner to be the viewcontroller class. The I connected all the IBOutlets and IBActions. When I run the app on an iPad (and in the iPad simulator) it crashes when I [&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-4950","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4950","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=4950"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4950\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}