我有这个特殊的segue,一直给我NSRangeException。我在prepareForSegue中根本没有代码。我在该视图控制器的viewdidload中设置了一个断点,它执行没有问题。似乎在IOS系统代码中发生异常。
这是例外的细节
2015-09-16 07:21:24.939投票策略[7523:1117149] *由于未捕获的异常'NSRangeException'终止应用,原因:'* - [ NSArrayM objectAtIndex: ]:索引0超出空数组的边界' ***第一次抛出调用堆栈: ( 0 CoreFoundation 0x000000010a699c65 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000010c204bb7 objc_exception_throw + 45 2 CoreFoundation 0x000000010a583093 - [__ NSArrayM objectAtIndex:] + 227 3我的战略0x000000010a008cfa _TPAo13 + 42 4我的战略0x000000010a009c35 _TTRXFo_dSi_aPSs9AnyObject__XFo_dSi_oPS _ + 21 5我的战略0x000000010a0094ec _TFFC14My_Strategic4Rest9getRidingFS0_FSST_U_FTGSQCSo13NSURLResponse_GSQCSo6NSData_GSQCSo7NSError__T_ + 1260 6我的战略性0x000000010a009cea _TTRXFo_oGSQCSo13NSURLResponse_oGSQCSo6NSData_oGSQCSo7NSError__dT__XFdCb_dGSQS__dGSQS0__dGSQS1___dT__ + 90 7 CFNetwork 0x000000010c8a98c5 67+ [NSURLConnection sendAsynchronousRequest:queue:completionHandler:] _ block_invoke_2 + 155 8基金会0x000000010ab5a57f __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 7 9基础0x000000010aa9b0b2 - [NSBlockOperation main] + 98 10基金会0x000000010aa7d774 - [__ NSOperationInternal _start:] + 645 11基金会0x000000010aa7d383 __NSOQSchedule_f + 184 12 libdispatch.dylib 0x000000010dcfe614 _dispatch_client_callout + 8 13 libdispatch.dylib 0x000000010dce56a7 _dispatch_queue_drain + 2176 14 libdispatch.dylib 0x000000010dce4cc0 _dispatch_queue_invoke + 235 15 libdispatch.dylib 0x000000010dce83b9 _dispatch_root_queue_drain + 1359 16 libdispatch.dylib 0x000000010dce9b17 _dispatch_worker_thread3 + 111 17 libsystem_pthread.dylib 0x000000010e06b637 _pthread_wqthread + 729 18 libsystem_pthread.dylib 0x000000010e06940d start_wqthread + 13 ) libc ++ abi.dylib:以NSException类型的未捕获异常终止