|
@@ -57,7 +57,7 @@ extension ViewController: UICollectionViewDataSource {
|
|
|
|
|
|
|
|
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
|
|
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
|
|
|
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("collectionViewCell", forIndexPath: indexPath) as! CollectionViewCell
|
|
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("collectionViewCell", forIndexPath: indexPath) as! CollectionViewCell
|
|
|
- cell.cellImageView.kf_setImageWithURL(NSURL(string: "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/kingfisher-\(indexPath.row + 1).jpg")!, placeholderImage: nil, options: KingfisherOptions.LowPriority, progressBlock: { (receivedSize, totalSize) -> () in
|
|
|
|
|
|
|
+ cell.cellImageView.kf_setImageWithURL(NSURL(string: "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/kingfisher-\(indexPath.row + 1).jpg")!, placeholderImage: nil, options: KingfisherOptions.None, progressBlock: { (receivedSize, totalSize) -> () in
|
|
|
println("\(indexPath.row + 1): \(receivedSize)/\(totalSize)")
|
|
println("\(indexPath.row + 1): \(receivedSize)/\(totalSize)")
|
|
|
}) { (image, error, imageURL) -> () in
|
|
}) { (image, error, imageURL) -> () in
|
|
|
println("\(indexPath.row + 1): Finished")
|
|
println("\(indexPath.row + 1): Finished")
|