mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-24 20:26:02 +10:00
clean some println
This commit is contained in:
@@ -35,10 +35,8 @@ class ImageCacheController {
|
||||
updatedCache.addIndex(path.item)
|
||||
}
|
||||
|
||||
println("images: \(images), \(visibleCells.count), \(updatedCache.lastIndex), \(cachePreheatSize)")
|
||||
let minCache = max(0, updatedCache.firstIndex - cachePreheatSize)
|
||||
let maxCache = min(images.count - 1, updatedCache.lastIndex + cachePreheatSize)
|
||||
println("cache: \(minCache), \(maxCache)")
|
||||
|
||||
updatedCache.addIndexesInRange(NSMakeRange(minCache, maxCache - minCache + 1))
|
||||
|
||||
@@ -47,7 +45,7 @@ class ImageCacheController {
|
||||
if !updatedCache.containsIndex(index) {
|
||||
let asset: PHAsset! = self.images[index] as! PHAsset
|
||||
self.imageCache.stopCachingImagesForAssets([asset], targetSize: self.targetSize, contentMode: self.contentMode, options: nil)
|
||||
print("Stopping caching image \(index)")
|
||||
//println("Stopping caching image \(index)")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +54,7 @@ class ImageCacheController {
|
||||
if !self.cachedIndices.containsIndex(index) {
|
||||
let asset: PHAsset! = self.images[index] as! PHAsset
|
||||
self.imageCache.startCachingImagesForAssets([asset], targetSize: self.targetSize, contentMode: self.contentMode, options: nil)
|
||||
print("Starting caching image \(index)")
|
||||
//println("Starting caching image \(index)")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ extension FeedCell: UICollectionViewDataSource, UICollectionViewDelegate {
|
||||
|
||||
if let imageURL = attachmentURLs[safe: indexPath.item] {
|
||||
|
||||
println("attachment imageURL: \(imageURL)")
|
||||
//println("attachment imageURL: \(imageURL)")
|
||||
|
||||
cell.configureWithImageURL(imageURL)
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ extension FeedView: UICollectionViewDataSource, UICollectionViewDelegate {
|
||||
|
||||
let imageURL = attachmentURLs[indexPath.item]
|
||||
|
||||
println("attachment imageURL: \(imageURL)")
|
||||
//println("attachment imageURL: \(imageURL)")
|
||||
|
||||
cell.configureWithImageURL(imageURL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user