UITableViewの特定のセルを選択不可にする この設定にはいくつかパターンがある。 Storyboard上ではUITableViewCellのSelectionの項目をNoneにする。 ただし、この場合は該当のUITableViewCellクラス全体に影響が出る。 例えば、このセクションのこのセルだけ、という一部のセルの場合は使えない。 そういう場合はコードで設定する必要がある。 これは2番目のセルだけ選択不可にする場合。 func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell: UITableViewCell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: