2010-11-24 6 views

Répondre

0

Pour changer la couleur du texte:

// Dequeue or create a cell of the appropriate type. 
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 
if (cell == nil) { 
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 
    cell.accessoryType = UITableViewCellAccessoryNone; 
} 

// Configure the cell. 
cell.textLabel.text = [[data objectAtIndex:indexPath.row] retain]; 
cell.textColor = [UIColor blueColor]; //Here you can use whatever color you want 
return cell; 
+0

cell.textColor est obsolète, utilisez plutôt cell.textLabel.textColor – willcodejavaforfood

Questions connexes