我正在開始一個項目,我有一個導航控制器。我首先加載一個登錄頁面,然後進入一個登錄成功頁面,在那裏我有幾個按鈕可以點擊,當我點擊這裏的任何按鈕時,我得到這個錯誤。當我試圖調試代碼時,我在按鈕單擊方法中有一個斷點,然後在執行任何代碼之前,我得到了它。這是日誌。任何人都可以幫助我。在此先感謝sigabrt加載筆尖文件時出錯
2010-10-07 23:15:28.868 Cattle_try1[14417:207] -[__NSCFType onYardMapBtnClick]: unrecognized selector sent to instance 0x6149a40
2010-10-07 23:15:28.872 Cattle_try1[14417:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType onYardMapBtnClick]: unrecognized selector sent to instance 0x6149a40'
*** Call stack at first throw:
(
0 CoreFoundation 0x02655b99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x027a540e objc_exception_throw + 47
2 CoreFoundation 0x026576ab -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x025c72b6 ___forwarding___ + 966
4 CoreFoundation 0x025c6e72 _CF_forwarding_prep_0 + 50
5 UIKit 0x002b47f8 -[UIApplication sendAction:to:from:forEvent:] + 119
6 UIKit 0x0033fde0 -[UIControl sendAction:to:forEvent:] + 67
7 UIKit 0x00342262 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
8 UIKit 0x00340e0f -[UIControl touchesEnded:withEvent:] + 458
9 UIKit 0x002d83d0 -[UIWindow _sendTouchesForEvent:] + 567
10 UIKit 0x002b9cb4 -[UIApplication sendEvent:] + 447
11 UIKit 0x002be9bf _UIApplicationHandleEvent + 7672
12 GraphicsServices 0x02f35822 PurpleEventCallback + 1550
13 CoreFoundation 0x02636ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
14 CoreFoundation 0x02597807 __CFRunLoopDoSource1 + 215
15 CoreFoundation 0x02594a93 __CFRunLoopRun + 979
16 CoreFoundation 0x02594350 CFRunLoopRunSpecific + 208
17 CoreFoundation 0x02594271 CFRunLoopRunInMode + 97
18 GraphicsServices 0x02f3400c GSEventRunModal + 217
19 GraphicsServices 0x02f340d1 GSEventRun + 115
20 UIKit 0x002c2af2 UIApplicationMain + 1160
21 Cattle_try1 0x00002338 main + 102
22 Cattle_try1 0x000022c9 start + 53
)
terminate called after throwing an instance of 'NSException'
Program received signal: 「SIGABRT」.
kill
quit
調試器已退出,狀態0
請確保您遵循Apple針對筆尖對象內存管理的指導原則。 http://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmNibObjects.html#//apple_ref/doc/uid/TP40004998-SW2 – 2010-10-08 04:23:06