title: Swift - how automatically select cell when collectionView first loads up?
body: <p>I'm trying to figure out how to programmatically select a cell the moment the collectionView starts up. As in, the default load of the collectionView should have the first cell selected.</p>
  
  <p>I'm using shouldSelectItemAtIndexPath for my selection function, so I want to call it for a specific cell index.</p>
  
  <p>So far I have tried:</p>
  
  <pre><code>collectionView(self.collectionView!, shouldSelectItemAtIndexPath: self.collectionView!.indexPathForCell(CVcellArray.first!)!)
  </code></pre>
  
  <p>In my viewDidLoad function for my custom CollectionView script.</p>
  
  <p>It crashed when the collectionView loaded. Am I doing something wrong?</p>
  
  <p>Thank you.</p>