It should be this
switch (indexPath.section) {
case 0: {
cell.textLabel.text = FileANames[indexPath.row];
cell.detailTextLabel.text = FileADetails[FileANames[indexPath.row]];
break;
}
case 1: {
cell.textLabel.text = FileBNames[indexPath.row];
cell.detailTextLabel.text = FileBDetails[FileBNames[indexPath.row]];
break;
}
case 2: {
cell.textLabel.text = FileCNames[indexPath.row];
cell.detailTextLabel.text = FileCDetails[FileCNames[indexPath.row]];
break;
}
default: break;
}
return cell;