2012-01-02 240 views
1

這是我在運行我的應用程序時得到的日誌控制檯中的錯誤。我不明白哪裏出了問題。運行應用程序時出錯

如果有人知道發生了什麼,這將非常感激。

2012-01-01 21:09:04.821 Grocery Finder[242:1f03] void SendDelegateMessage(NSInvocation*): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: _kCFURLConnectionPrivateRunLoopMode 
2012-01-01 21:09:05.121 Grocery Finder[242:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]' 
*** First throw call stack: 
(0x341c98bf 0x344191e5 0x34121275 0x29e47 0x2ab91 0x375b46b5 0x3760faf1 0x375d0d21 0x375d0a71 0x375d078b 0x375d04ff 0x3758781b 0x3758cfb9 0x34cdeba7 0x36dfde8d 0x3419c2dd 0x3411f4dd 0x3411f3a5 0x309a3fcd 0x375a0743 0x207b 0x2034) 
terminate called throwing an exception 

回答

2

作爲日誌消息指出您請求空數組索引1項。

[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]' 
0

此外,您可以發佈您的代碼來檢查您嘗試訪問NSArray中的越界項目的位置。

相關問題