2010-04-06 113 views
0

我剛剛在我的應用程序中出現此錯誤。tableview - 發送到實例的無法識別的選擇器

2010-04-06 03:58:55.505 EasyPay DPS[6530:207] *** -[NTItems tableView]: 
unrecognized selector sent to instance 0x397af90 

2010-04-06 03:58:55.515 EasyPay DPS[6530:207] *** 
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 
'*** -[NTItems tableView]: unrecognized selector sent to instance 0x397af90' 

這個錯誤是非常無用的 - 我在哪裏開始我的代碼?

這裏的堆棧:

2010-04-06 03:58:55.522 EasyPay DPS[6530:207] Stack: (
29283419, 
2541614345, 
29665339, 
29234806, 
29087426, 
14309, 
3233602, 
3226942, 
3269216, 
3265242, 
3271699, 
3252934, 
3274087, 
3252583, 
12030, 
3029574, 
3012740, 
266666, 
29067968, 
29064264, 
37373461, 
37373658, 
2756527, 
9456, 
9310 
) 

#0 0x01c20004 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___() 
#1 0x977df509 in objc_exception_throw() 
#2 0x01c4a83b in -[NSObject doesNotRecognizeSelector:]() 
#3 0x01be1676 in ___forwarding___() 
#4 0x01bbd6c2 in __forwarding_prep_0___() 
#5 0x00003809 in -[NTItems viewDidLoad] (self=0x3965490, _cmd=0x15ee1bc) at /Users/shamilnunhuck/Documents/EasyPay DPS/Classes/NTItems.m:38 
#6 0x00315742 in -[UIViewController view]() 
#7 0x00313d3e in -[UIViewController contentScrollView]() 
#8 0x0031e260 in -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:]() 
#9 0x0031d2da in -[UINavigationController _layoutViewController:]() 
#10 0x0031ec13 in -[UINavigationController _startTransition:fromViewController:toViewController:]() 
#11 0x0031a2c6 in -[UINavigationController _startDeferredTransitionIfNeeded]() 
#12 0x0031f567 in -[UINavigationController pushViewController:transition:forceImmediate:]() 
#13 0x0031a167 in -[UINavigationController pushViewController:animated:]() 
#14 0x00002f22 in -[RootViewController tableView:didSelectRowAtIndexPath:] (self=0x391f1d0, _cmd=0x15e67b4, tableView=0x4071c00, indexPath=0x3977540 at /Users/shamilnunhuck/Documents/EasyPay DPS/Classes/RootViewController.m:167 
#15 0x002e3a46 in -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]() 
#16 0x002df884 in -[UITableView _userSelectRowAtIndexPath:]() 
#17 0x000411aa in __NSFireDelayedPerform() 
#18 0x01bb8ac0 in CFRunLoopRunSpecific() 
#19 0x01bb7c48 in CFRunLoopRunInMode() 
#20 0x023a4615 in GSEventRunModal() 
#21 0x023a46da in GSEventRun() 
#22 0x002a0faf in UIApplicationMain() 
#23 0x00002514 in main (argc=1, argv=0xbfffefb8) at /Users/shamilnunhuck/Documents/EasyPay DPS/main.m:14 
+0

如果您正在調試器中運行,請在控制檯中鍵入bt以進行堆棧跟蹤。 – 2010-04-06 03:20:52

+0

添加堆棧跟蹤 – bear 2010-04-06 03:29:47

回答

1

你的問題是viewDidLoad在線38

仔細檢查方法名,接收器名稱等

+0

由於某種原因,我添加了另一個UISearchBar。謝謝:) – bear 2010-04-06 03:39:33

+0

不客氣。 – 2010-04-06 03:40:42

0

嘗試添加的tableView屬性或方法調用之前調用NTItems,或者從UITableViewController派生,以便爲您定義該方法。

相關問題