project_files/HedgewarsMobile/Classes/AboutViewController.m
changeset 5985 d276be65b745
parent 5208 878e551f0b4a
child 6000 dbcebcd3d79f
equal deleted inserted replaced
5984:6fd40d866342 5985:d276be65b745
    77     if (cell == nil)
    77     if (cell == nil)
    78         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
    78         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
    79 
    79 
    80     // first all the names, then the title (which is offset 5)
    80     // first all the names, then the title (which is offset 5)
    81     cell.textLabel.text = [[self.people objectAtIndex:self.segmentedControl.selectedSegmentIndex] objectAtIndex:[indexPath row]];
    81     cell.textLabel.text = [[self.people objectAtIndex:self.segmentedControl.selectedSegmentIndex] objectAtIndex:[indexPath row]];
       
    82     cell.textLabel.adjustsFontSizeToFitWidth = YES;
       
    83     cell.textLabel.minimumFontSize = 8;
    82     cell.detailTextLabel.text = [[self.people objectAtIndex:(self.segmentedControl.selectedSegmentIndex + 5)] objectAtIndex:[indexPath row]];
    84     cell.detailTextLabel.text = [[self.people objectAtIndex:(self.segmentedControl.selectedSegmentIndex + 5)] objectAtIndex:[indexPath row]];
    83 
    85 
    84     return cell;
    86     return cell;
    85 }
    87 }
    86 
    88