это мой первый раз здесь!
Я получаю эту ошибку при настройке UITableViewCell.
Это моя ячейка:
@interface CellView : UITableViewCell {
IBOutlet UILabel *nombre;
IBOutlet UILabel *estado;
}
-(void)setName:(NSString *) name;
И этометод, который выполняется для каждой строки:
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSInteger *)indexPath {
static NSString *CellIdentifier = @"CellView";
CellView *cell = (CellView *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell==nil){
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"CellView" owner:nil options:nil];
for(id currentObject in topLevelObjects){
if([currentObject isKindOfClass:[UITableViewCell class]]){
cell = (CellView *) currentObject;
break;
}
}
}
[cell setName:[latitudes objectAtIndex:indexPath.row]];
return cell;
}
широты - это NSMutableArray
Я пробовал также с cell.nombre.text = [latitude objetcAtIndex: indexPath.row];но все равно возвращает ту же ошибку.
Есть идеи?
Спасибо!