Can someone tell me what is wrong with me code here, im getting an error "error: expected expression before 'else'" and im not sure where to go to fix this, the second one seems to be right but when i added a third line i got the error! Any help even documentation would help, thanks!
I think im missing {} but not sure here to put it," } else { " seems to give me the error also
I think im missing {} but not sure here to put it," } else { " seems to give me the error also
// Configure the cell.
if (indexPath.row % 2)
cell.textLabel.text = [NSString stringWithFormat"FirstVC", indexPath.row];
else
cell.textLabel.text = [NSString stringWithFormat"SecondVC", indexPath.row];
else
cell.textLabel.text = [NSString stringWithFormat"SecondVC", indexPath.row];
return cell;
}