title: XCode 6 beta 7 error with swift
body: <p>Previous version is beta 6 , my project worked fine. I just updated my xcode to version 6 beta 7 and getting error , really don't know how to fix it.</p>
  
  <pre><code>var currentcell = collectionView.cellForItemAtIndexPath(indexPath)
  var posx = currentcell.frame.origin.x-collectionView.contentOffset.x
  </code></pre>
  
  <p>Error report: 'UICollectionViewCell?' does not have a member named 'frame'
  Xcode 6 beta 7 suggest me add ? after current cell.
  i changed it to</p>
  
  <pre><code>var posx = currentcell?.frame.origin.x-collectionView.contentOffset.x
  </code></pre>
  
  <p>But still error: Error report: Value of optional type 'CGFloat?' not unwrapped; did you mean to use '!' or '?'?
  Anyone can help?</p>