clean some println

This commit is contained in:
nixzhu
2015-10-15 20:18:54 +08:00
committed by nixzhu
parent c2be413001
commit cd105e9b3d
3 changed files with 4 additions and 6 deletions
@@ -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)")
}
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -229,7 +229,7 @@ extension FeedView: UICollectionViewDataSource, UICollectionViewDelegate {
let imageURL = attachmentURLs[indexPath.item]
println("attachment imageURL: \(imageURL)")
//println("attachment imageURL: \(imageURL)")
cell.configureWithImageURL(imageURL)