title: Updating a single cell in swift UICollectionview
body: <p>I have a simple hangman game that I wanted to make more elegant using a <code>UIcollectionview</code> but getting a single cell to update is causing even more of my hair to drop out!!</p>
  
  <p>The logic of the code works, if I try to insert or delete a cell the app crashes and the indexPath variable prints out happily but the <code>UIcollectionview</code> cell refuses to update. </p>
  
  <p>I used Xcode's storyboard to create the view and it has a named outlet and prototype cell, the view populates happily but will not change, what am I doing wrong? Any help would be appreciated.</p>
  
  <pre><code>let indexPath1 = IndexPath(item: item!, section: 0)
  reloadCollectionView(indexPath: indexPath1 as NSIndexPath?)
  </code></pre>
  
  <p>then I call:</p>
  
  <pre><code>func reloadCollectionView(indexPath:NSIndexPath?) {
      print("reload indexPath item: \(indexPath?.item) and section: \(indexPath?.section)")
      if (indexPath != nil){
          let cell = collectionOutlet.cellForItem(at: indexPath as! IndexPath) as! ElementsCollectionViewCell
  
          let section = indexPath?.section
  
          if section == 0 {
  
                      cell.letterLabel.text = self.lettersArray0[(indexPath?.item)!]
                      collectionOutlet.reloadItems(at: [indexPath as! IndexPath])
  
                      print(" Cell text: \(cell.letterLabel.text ?? "NOWT")")
                 //collectionOutlet.reloadData()
                      print("Index \(indexPath)")
  
  }
  </code></pre>