Je ne vois pas le texte de mon UITableView apparaître .. en fait le TableView ne semble pas être à l'écran du tout parce que je ne peux pas sélectionner les lignes vides.Le texte de la cellule UITableView ne s'affiche pas?
Etrangement, mon mot de passe cellForRowAtIndexPath apparaît ok avec les données attendues - je n'en vois tout simplement pas sur l'écran.
-(void)bindFriendsToTable:(NSArray *)friends{
NSLog(@"friends : %@",friends);
[sections removeAllObjects];
[sectionRows removeAllObjects];
[sections addObject:@"Friends"];
[sectionRows setObject:friends forKey:@"Friends"];
[self.tableView reloadData];
HideActivityIndicator();
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *cellsection = [sections objectAtIndex:indexPath.section];
NSArray *rowsInSection = [sectionRows valueForKey:cellsection];
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
cell.textLabel.font = [UIFont fontWithName:@"Helvetica" size:14];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
cell.textLabel.text = [rowsInSection objectAtIndex:indexPath.row];
NSLog(@"%@",cell.textLabel.text);
return cell;
}
Je suis héritant d'une classe de base qui est un UITableViewController, comme je l'ai pour une douzaine d'autres écrans du projet. Une idée de pourquoi je ne vois pas la tableView? La couleur de votre police est-elle la même que celle de votre fond d'écran?
Oublié de mettre ça! Merci. – quantumpotato