title: UICollectionView error using Swift
body: <p>I am getting this error, trying to use a UICollectionView in Swift:</p>
  
  <pre><code>NSInternalInconsistencyException', reason: 'attempt to register a cell class which is not a subclass of UICollectionViewCell ((null))
  </code></pre>
  
  <p>But I think I am registering the cell:</p>
  
  <ol>
  <li><p>ViewDidLoad:</p>
  
  <pre><code>override func viewDidLoad()
  {
      super.viewDidLoad()
      self.collectionView.registerClass(NSClassFromString("CollectionCell"),forCellWithReuseIdentifier:"CELL")
  }
  </code></pre></li>
  <li><p>cellForItemAtIndexPath:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath:NSIndexPath)-&gt;UICollectionViewCell
  {
     var  cell = collectionView.dequeueReusableCellWithReuseIdentifier("CELL", forIndexPath: indexPath) as CollectionCell
  
      cell.titleLabel.text="cellText"
      return cell
  }
  </code></pre></li>
  </ol>
  
  <p>and the cell class:</p>
  
  <pre><code>    class CollectionCell: UICollectionViewCell
      {
  
          @IBOutlet var titleLabel : UILabel
          init(coder aDecoder: NSCoder!)
          {
              super.init(coder: aDecoder)
  
          } 
       }
  </code></pre>
  
  <p>Any help appreciated</p>