Created
February 1, 2016 21:19
-
-
Save danstepanov/638936388b2d472c2789 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { | |
let cell = collectionView.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as! ImageCell | |
for imageURL in self.imageURLs { | |
let URL = NSURL(string: imageURL as! String)! | |
cell.imageView.af_setImageWithURL(URL) | |
} | |
activityIndicator.stopAnimating() | |
return cell | |
} | |
func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { | |
return self.imageURLs.count | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment