title: How to select all cells in a section except one cell in collectionview
body: <p><strong>I want to select all the cells in the section in collectionView but except one cell that can't be selected.</strong> I tried so many ways and searched a lot but no help. What I have now is only to select multiple cells in collectionView.</p>
  <pre><code>override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
      if deleteMode == true {
          self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: &quot;Delete&quot;, style: .plain, target: self, action: #selector(tryThisMethod))
          self.collectionView.allowsMultipleSelection = true
          let cell = collectionView.cellForItem(at: indexPath) as! CollectionViewCell
          cell.toggleSelected()
          self.posiciones = collectionView.indexPathsForSelectedItems!
      }
  }
  </code></pre>