how can I set different color for multiple rows in tableview, maybe up to 10 different colors. I figured the part for alternative row colors.
//alternate row colour
if (indexPath.row % 2) {
cell.contentView.backgroundColor = [[UIColor alloc]initWithRed:87.0/255.0 green:84.0/255.0 blue:229.0/255.0 alpha:1];
} else {
cell.contentView.backgroundColor = [[UIColor alloc]initWithRed:187.0/255.0 green:184.0/255.0 blue:229.0/255.0 alpha:1];
}