Я прочитал другие посты и не могу понять это.cellForRowAtIndexPath вызывается, когда я прокручиваю до ранее не просмотренных ячеек, но когда я вызываю reloadData, он не вызывается.Делегат подключается к владельцу файла, как и источник данных.
my cellForRowAtIndexPath:
-(UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)cellForRowAtIndexPath {
NSLog(@"cellForRowAtIndexPath");
static NSString *CellTableIdentifier = @"CellTableIdentifier";
UINib *nib = [UINib nibWithNibName:@"HBStopDialogCell" bundle:nil];
[tableView registerNib:nib forCellReuseIdentifier:CellTableIdentifier];
HBStopDialogCell *cell = [tableView dequeueReusableCellWithIdentifier:CellTableIdentifier];
NSUInteger row = [cellForRowAtIndexPath row];
[cell stopName:ourStop.stopName stopLine:[ourStop.normalStopsArray objectAtIndex:row]];
if (cell==nil) {
NSLog(@"ah the cell is nil");
}
return cell;
}