UICollectionView prepareForSegue indexPathForCell is nil iOS 9
<p>The problem is this line return nil:</p>

<pre><code>if let indexPath = self.collectionView?.indexPathForCell(sender as! UICollectionViewCell) 
</code></pre>

<p>For that reason I can't pass any information, The identifier is set and the delegate is set.</p>

<pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue.identifier == "DetalleSegueIdentifier" {
        if let indexPath = self.collectionView?.indexPathForCell(sender as! UICollectionViewCell) {
            let detailVC = segue.destinationViewController as! DetalleNoticiaViewController
            detailVC.contact = self.noticia[indexPath.row]
        }
    }
}

func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
    self.performSegueWithIdentifier("DetalleSegueIdentifier", sender: collectionView.cellForItemAtIndexPath(indexPath))
}
</code></pre>

<p>Any help?</p>