我怎么知道uikit的这种方法有关系?

时间:2014-07-07 04:17:50

标签: ios objective-c uitableview

我与UITableView

崩溃了

我看到了UIKit调用的这种方法。

     CoreFoundation 
__exceptionPreprocess + 130
2    CoreFoundation 
-[__NSArrayM objectAtIndex:] + 230
3
___ 
__NotificationHistoryDataSource.m line 152
-[__NotificationHistoryDataSource tableView:cellForRowAtIndexPath:]
4
___ 
___MenuDataSource.m line 141
-[___MenuDataSource tableView:cellForRowAtIndexPath:]
5
UIKit   
-[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 410
6
UIKit   
-[UITableView _updateVisibleCellsNow:] + 1806
7
UIKit   
-[UITableView _visibleCells] + 24
8
UIKit   
-[UITableView _updateAnimationDidStop:finished:context:] + 1064
9
UIKit   
__46-[UITableView _updateWithItems:updateSupport:]_block_invoke831 + 66
10
UIKit   
-[UIViewAnimationBlockDelegate _sendDeferredCompletion:] + 66

我怎么知道我呼叫UITableView的方法是什么? 更新了崩溃日志

这里我有两张表格

菜单:

case MenuSectionNotification:{
        return [super tableView:tableView cellForRowAtIndexPath:indexPath];
        break;
       }

继承自通知

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
 return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section   {
self.mySection = section;
return [self.notificationList count];

}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    int row = [indexPath row];
    --NotificationCell* cell = [tableView dequeueReusableCellWithIdentifier:  [---NotificationCell identifier]];
    ---Notification* notification = nil;
    notification = [self.notificationList objectAtIndex:row];

0 个答案:

没有答案