equal
deleted
inserted
replaced
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 |