У меня есть UIView, и на нем у меня есть табличное представление, табличное представление использует пользовательские данные, передаваемые из NSArray. Происходит какая-то странность в том, что в лучшем случае я могу заставить таблицу отображать только 2 ячейки, хотя там 10 ячеек и все 10 заполнены.
У меня другой перо расположено так же, и он отлично работает.
Снимок экрана происходящего (5 - 5 из 10 ячеек, все из которых заполнены данными).
http://img692.imageshack.us/img692/1465/screenshot20100708at215.jpg
-(UITableViewCell *)tableView:(UITableView *)tblView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"ISB points cellForRowAtIndexPath start");
NSLog(@"Elements in array = %d",[self.listData count]);
//
static NSString *cellID = @"PointsCellIdentifier";
PointsCustomCell *cell = [tblView dequeueReusableCellWithIdentifier:cellID];
if( cell == nil )
{
NSArray *nibObjects = [[NSBundle mainBundle]loadNibNamed:@"PointsCustomCell" owner:nil options:nil];
for( id currentObject in nibObjects )
{
NSLog(@"nibObjects count = %d", [nibObjects count]);
if( [currentObject isKindOfClass:[PointsCustomCell class]] )
{
cell = (PointsCustomCell *)currentObject;
}// if
}// for
}// if
if( indexPath.row < [listData count] )
{
RiderPointsData *riderPts = (RiderPointsData *)[listData objectAtIndex:indexPath.row];
cell.posLabel.text = riderPts.pos;
cell.nameLabel.text = riderPts.name;
cell.pointsLabel.text = riderPts.points;
cell.winsLabel.text = riderPts.wins;
//[riderPts release];
}
NSLog(@"ISB points cellForRowAtIndexPath end");
return cell;
}