iphone - strange exception NSInvalidArgument on viewDidLoad ios7 -


ok, im writing app iphone under ios7, using xcode 5 i've got main view controller table view controller, , on start good, view loads without errors, after leave view controller, use other scenes, , rewind via segue got this:

terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** -[__nsarraym insertobject:atindex:]: object cannot nil' 

here code of method

- (void)viewdidload {     [super viewdidload];     nslog(@"from collectinfotvc, viewdidload");     // set side bar button action. when it's tapped, it'll show sidebar.     _sidebarbutton.target = self.revealviewcontroller;     _sidebarbutton.action = @selector(revealtoggle:);      // set gesture     [self.view addgesturerecognizer:self.revealviewcontroller.pangesturerecognizer];      _cancelcarbutton.hidden = yes; } 

could guys please me ?

upd.#1: call stack looks this

2014-03-24 11:48:23.286 demotaxi[28008:60b] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** -[__nsarraym insertobject:atindex:]: object cannot nil' *** first throw call stack: (     0   corefoundation                      0x00000001033ed495 __exceptionpreprocess + 165     1   libobjc.a.dylib                     0x00000001030a799e objc_exception_throw + 43     2   corefoundation                      0x00000001033a4374 -[__nsarraym insertobject:atindex:] + 820     3   uikit                               0x0000000101cb40da -[uiview(uiviewgestures) addgesturerecognizer:] + 199     4   demotaxi                            0x000000010001eaf7 -[collectinfotableviewcontroller viewdidload] + 359     5   uikit                               0x0000000101d4a59e -[uiviewcontroller loadviewifrequired] + 562     6   uikit                               0x0000000101d4a777 -[uiviewcontroller view] + 29     7   uikit                               0x0000000101d5811a -[uiviewcontroller shouldautorotate] + 30     8   uikit                               0x0000000101d58402 -[uiviewcontroller _preferredinterfaceorientationforpresentationinwindow:frominterfaceorientation:] + 236     9   uikit                               0x0000000101fa6519 -[uiwindowcontroller transition:fromviewcontroller:toviewcontroller:target:didendselector:animation:] + 1798     10  uikit                               0x0000000101d54fce -[uiviewcontroller presentviewcontroller:withtransition:completion:] + 4854     11  demotaxi                            0x0000000100006ddc -[wait4carviewcontroller rewind2main] + 60     12  foundation                          0x0000000102c91e14 __nsfiretimer + 83     13  corefoundation                      0x00000001033afc34 __cfrunloop_is_calling_out_to_a_timer_callback_function__ + 20     14  corefoundation                      0x00000001033af7b2 __cfrunloopdotimer + 962     15  corefoundation                      0x00000001033987be __cfrunlooprun + 1614     16  corefoundation                      0x0000000103397d83 cfrunlooprunspecific + 467     17  graphicsservices                    0x0000000103dacf04 gseventrunmodal + 161     18  uikit                               0x0000000101c54e33 uiapplicationmain + 1010     19  demotaxi                            0x00000001000265e3 main + 115     20  libdyld.dylib                       0x00000001044455fd start + 1     21  ???                                 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception 


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -