Skip to content

Commit

Permalink
Force downcast on ImageUICollectionViewCell
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnheo committed May 5, 2015
1 parent 809c87b commit b080f3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ViewController: UIViewController, UICollectionViewDelegate, UICollectionVi
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {

// Create the cell and return the cell
var cell = collectionView.dequeueReusableCellWithReuseIdentifier("cell", forIndexPath: indexPath) as ImageUICollectionViewCell
var cell = collectionView.dequeueReusableCellWithReuseIdentifier("cell", forIndexPath: indexPath) as! ImageUICollectionViewCell

// Add image to cell
cell.image.image = model.images[indexPath.row]
Expand Down

0 comments on commit b080f3e

Please sign in to comment.