text: Q:
  
  How to set different text colours on uitableviews
  
  I have a dynamic UITableview and I want to set different text colours for each cell.
  What code would i need to make the text colours be red, yellow, green, blue? 
  
  A:
  
  Here the following code will help you
  - (void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: (NSIndexPath*)indexPath
  {
      if(indexPath.row % 4 == 0)
          cell.textLabel.textColor =[UIColor redColor];
      else if(indexPath.row % 4 == 1)
          cell.textLabel.textColor =[UIColor blueColor];
      else if (indexPath.row % 4 == 2)
          cell.textLabel.textColor =[UIColor yellowColor];
      else if (indexPath.row % 4 == 2)
          cell.textLabel.textColor =[UIColor greenColor];
  }
  
  