2011-01-10 72 views
3

plz幫助我解決這個 讀音字學習者終止thrwing的實例後,被稱爲「NSException」

[Session started at 2011-01-10 14:32:07 +0530.] 
2011-01-10 14:32:10.595 balls[963:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ballsViewController" nib but the view outlet was not set.' 
*** Call stack at first throw: 
(
0 CoreFoundation      0x025a5b99 __exceptionPreprocess + 185 
1 libobjc.A.dylib      0x0239a40e objc_exception_throw + 47 
2 CoreFoundation      0x0255e238 +[NSException raise:format:arguments:] + 136 
3 CoreFoundation      0x0255e1aa +[NSException raise:format:] + 58 
4 UIKit        0x00363a40 -[UIViewController _loadViewFromNibNamed:bundle:] + 295 
5 UIKit        0x00361675 -[UIViewController loadView] + 120 
6 UIKit        0x0036154f -[UIViewController view] + 56 
7 balls        0x00001fc1 -[ballsAppDelegate application:didFinishLaunchingWithOptions:] + 74 
8 UIKit        0x002b7f27 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163 
9 UIKit        0x002ba3b0 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 346 
10 UIKit        0x002c43ec -[UIApplication handleEvent:withNewEvent:] + 1958 
11 UIKit        0x002bcb3c -[UIApplication sendEvent:] + 71 
12 UIKit        0x002c19bf _UIApplicationHandleEvent + 7672 
13 GraphicsServices     0x030f0822 PurpleEventCallback + 1550 
14 CoreFoundation      0x02586ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 
15 CoreFoundation      0x024e7807 __CFRunLoopDoSource1 + 215 
16 CoreFoundation      0x024e4a93 __CFRunLoopRun + 979 
17 CoreFoundation      0x024e4350 CFRunLoopRunSpecific + 208 
18 CoreFoundation      0x024e4271 CFRunLoopRunInMode + 97 
19 UIKit        0x002b9c6d -[UIApplication _run] + 625 
20 UIKit        0x002c5af2 UIApplicationMain + 1160 
21 balls        0x00001f54 main + 102 
22 balls        0x00001ee5 start + 53 
) 
terminate called after throwing an instance of 'NSException' 
+0

帖子。看起來你還沒有爲你的xib添加一個插座。 – futureelite7 2011-01-10 09:28:28

回答

1

轉到ballsViewController的廈門國際銀行,並檢查查看是否連接到文件的所有者或沒有。

如果沒有比在視圖控件點擊一些代碼首先將鼠標拖動到文件的所有者

+0

非常感謝你,對於這麼晚的回覆感到抱歉 – 2011-08-08 10:16:53

相關問題