Skip to content

Commit

Permalink
Merge pull request #98 from jstnheo/develop
Browse files Browse the repository at this point in the history
Force downcast on ImageUICollectionViewCell
  • Loading branch information
chiahsien committed May 6, 2015
2 parents 809c87b + b080f3e commit d34283d
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 d34283d

Please sign in to comment.