2011-07-06 4 views
0

충돌의 tableview의 데이터 .. 내보기 내 배열 수를로드 않았다 내가 하나의 충돌로있는 tableview 셀에서 데이터를 이동하고 때의

64 내가 행의 수에이를 할당입니다 스크롤 할 때 return [categorieArray count];

세포 구성

cell.textLabel.text=[categorieArray objectAtIndex:indexPath.row]; 

return cell; 

*** Call stack at first throw: 
(
    0 CoreFoundation      0x00f8fbe9 __exceptionPreprocess + 185 
    1 libobjc.A.dylib      0x010e45c2 objc_exception_throw + 47 
    2 CoreFoundation      0x00f916fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 
    3 CoreFoundation      0x00f01366 ___forwarding___ + 966 
    4 CoreFoundation      0x00f00f22 _CF_forwarding_prep_0 + 50 
    5 Sigma-Aldrich      0x0000468d -[RootViewController tableView:cellForRowAtIndexPath:] + 237 
    6 UIKit        0x000977fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634 
    7 UIKit        0x0008d77f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75 
    8 UIKit        0x000a2450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561 
    9 UIKit        0x0009a538 -[UITableView layoutSubviews] + 242 
    10 QuartzCore       0x017f5451 -[CALayer layoutSublayers] + 181 
    11 QuartzCore       0x017f517c CALayerLayoutIfNeeded + 220 
    12 QuartzCore       0x017ee37c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310 
    13 QuartzCore       0x017ee0d0 _ZN2CA11Transaction6commitEv + 292 
    14 QuartzCore       0x0181e7d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 
    15 CoreFoundation      0x00f70fbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27 
    16 CoreFoundation      0x00f060e7 __CFRunLoopDoObservers + 295 
    17 CoreFoundation      0x00ecebd7 __CFRunLoopRun + 1575 
    18 CoreFoundation      0x00ece240 CFRunLoopRunSpecific + 208 
    19 CoreFoundation      0x00ece161 CFRunLoopRunInMode + 97 
    20 GraphicsServices     0x01203268 GSEventRunModal + 217 
    21 GraphicsServices     0x0120332d GSEventRun + 115 
    22 UIKit        0x0003242e UIApplicationMain + 1160 
    23 Sigma-Aldrich      0x00001d49 main + 121 
    24 Sigma-Aldrich      0x00001cc5 start + 53 
    25 ???         0x00000001 0x0 + 1 
) 
terminate called after throwing an instance of 'NSException' 
+0

'doesNotRecognizeSelector :'- 당신-다시 나쁜 (안 구현) 방법 또는 잘못된 객체를 호출. 애플리케이션이 충돌하는 라인은 무엇입니까? 당신의 cellForRowAtIndexPath, noOfRowsInSection 방법을 게시 @applelover –

+0

([: cellForRowAtIndexPath RootViewController있는 tableView]''어딘가에 있어야한다). –

답변

2

당신이 당신의 UITableViewDataSource,보고 특정의 불완전한 구현이 보인다 cally (그것은) tableView:cellForRowAtIndexPath을 구현하는 것을 잊었 기 때문에 프레임 워크가 시도하고 호출 할 때 실패합니다.

는 추가 정보를 살펴 here 되세요.

+0

oops 나는 데이터 소스에 대해 잊고 uitableview 감사 셀 io에 대한 메서드를 위임합니다. @sergio – applelover

+0

"의 tableview의 데이터를 스크롤 할 때의 충돌"@applelover는'있는 tableView 구현하는 데 실패하는 경우 : cellForRowAtIndexPath를'그가 스크롤 때만 추락을 어떻게? 테이블 뷰가 나타나기 전에 충돌이 일어 났을 것입니다. 왜 그가 스택 트레이스에'tableView : cellForRowAtIndexPath :'에 대한 호출을 보여주고 있습니까? – albertamg

+0

@albertamg : 질문의 두 번째 부분은 나에게 매우 분명하다 UIKit가 필요한 메소드를 호출하고, 오직 방법은 찾을 수 없습니다. UIKit가있는 tableView'전화를 시도하는 경우 : cellForRowAtIndexPath를 : 첫 번째 부분에 관해서는, 나는 ... 그 시도하고 설명하기 위해, – sergio

관련 문제