Я не вижу текст для моего UITableView. Фактически TableView, похоже, вообще не отображается на экране, потому что я не могу выбрать пустые строки.Текст ячейки UITableView не отображается?
Странно, мой журнал в cellForRowAtIndexPath отображается нормально с ожидаемыми данными - я просто ничего не вижу на экране.
-(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;
}
Я наследование от базового класса, который является UITableViewController, поскольку у меня есть с десяток других экранов в проекте. Любая идея, почему я не вижу tableView?
Забыл установить это! Благодарю. – quantumpotato