2012-07-18 31 views
0

我的應用程序在iPad上崩潰時,即使在模擬器中打開新視圖,它的工作原理就像是魅力一樣。當模擬器不加載視圖時,iPad崩潰

任何幫助,強烈感謝!

在此先感謝

控制檯輸出:

2012-07-18 10:32:19.783 Coverdale[3484:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]' 

​​

崩潰報告

Exception Type: EXC_CRASH (SIGABRT) 
Exception Codes: 0x00000000, 0x00000000 
Crashed Thread: 0 

Last Exception Backtrace: 
0 CoreFoundation     0x3757688f __exceptionPreprocess + 163 
1 libobjc.A.dylib     0x315eb259 objc_exception_throw + 33 
2 CoreFoundation     0x374bf9db -[__NSArrayM objectAtIndex:] + 271 
3 Coverdale      0x00092745 -[PreparationViewController setDetails:newFile:] (PreparationViewController.m:376) 
4 Coverdale      0x00090c3f -[PreparationViewController viewDidLoad] (PreparationViewController.m:70) 
5 UIKit       0x306e3c8b -[UIViewController view] + 167 
6 UIKit       0x30708481 -[UIViewController nextResponder] + 21 
7 UIKit       0x306ccbd5 -[UIResponder _containsResponder:] + 37 
8 UIKit       0x3078f359 -[UINavigationController defaultFirstResponder] + 57 
9 UIKit       0x306d53b5 -[UIResponder(Internal) _deepestDefaultFirstResponder] + 25 
10 UIKit       0x306d53d1 -[UIResponder(Internal) _deepestDefaultFirstResponder] + 53 
11 UIKit       0x306d5263 -[UIResponder(Internal) _promoteDeepestDefaultFirstResponder] + 31 
12 UIKit       0x3078f31f -[UIWindowController transitionViewDidStart:] + 83 
13 UIKit       0x307446cb -[UITransitionView _didStartTransition] + 71 
14 UIKit       0x3074400f -[UITransitionView transition:fromView:toView:] + 999 
15 UIKit       0x3078dc05 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 4937 
16 UIKit       0x3078c367 -[UIViewController presentViewController:withTransition:completion:] + 3123 
17 UIKit       0x307e76a7 -[UIViewController presentModalViewController:animated:] + 31 
18 Coverdale      0x000874fb -[IntroTableViewController tableView:didSelectRowAtIndexPath:] (IntroTableViewController.m:498) 
19 UIKit       0x3075c93d -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 945 
20 UIKit       0x307d6627 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 159 
21 Foundation      0x33093933 __NSFireDelayedPerform + 415 
22 CoreFoundation     0x3754aa33 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 15 
23 CoreFoundation     0x3754a699 __CFRunLoopDoTimer + 365 
24 CoreFoundation     0x3754926f __CFRunLoopRun + 1207 
25 CoreFoundation     0x374cc4a5 CFRunLoopRunSpecific + 301 
26 CoreFoundation     0x374cc36d CFRunLoopRunInMode + 105 
27 GraphicsServices    0x376c5439 GSEventRunModal + 137 
28 UIKit       0x306d8cd5 UIApplicationMain + 1081 
29 Coverdale      0x0007d103 main (main.m:17) 
30 Coverdale      0x0007d0a8 start + 40 


Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 libsystem_kernel.dylib   0x3291b32c __pthread_kill + 8 
1 libsystem_c.dylib    0x34c90208 pthread_kill + 48 
2 libsystem_c.dylib    0x34c89298 abort + 88 
3 libc++abi.dylib     0x3229ef64 abort_message + 40 
4 libc++abi.dylib     0x3229c346 _ZL17default_terminatev + 18 
5 libobjc.A.dylib     0x315eb350 _objc_terminate + 140 
6 libc++abi.dylib     0x3229c3be _ZL19safe_handler_callerPFvvE + 70 
7 libc++abi.dylib     0x3229c44a std::terminate() + 14 
8 libc++abi.dylib     0x3229d81e __cxa_rethrow + 82 
9 libobjc.A.dylib     0x315eb2a2 objc_exception_rethrow + 6 
10 CoreFoundation     0x374cc506 CFRunLoopRunSpecific + 398 
11 CoreFoundation     0x374cc366 CFRunLoopRunInMode + 98 
12 GraphicsServices    0x376c5432 GSEventRunModal + 130 
13 UIKit       0x306d8cce UIApplicationMain + 1074 
14 Coverdale      0x0007d0fc main (main.m:17) 
15 Coverdale      0x0007d0a0 start + 32 

回答

0

我在iPad上刪除了應用程序並再次運行。

它看起來像一個文本文件生成的數組,我用componentsSeparatedByString:讀出的條目比我訪問的條目少。