if (indexPath.row % 2 == 0) { cell.backgroundColor = [UIColor magentaColor]; }else{ cell.backgroundColor = [UIColor whiteColor]; } ...
if (indexPath.row % 2 == 0) {
cell.backgroundColor = [UIColor magentaColor];
}else{
cell.backgroundColor = [UIColor whiteColor];
}