 public class CKPhotosBaseViewController: UICollectionViewController, UICollectionViewDelegateFlowLayout {
     var duration :TimeInterval = 0.5
     public var imageUrls = [URL]()
+    //图片加载完成(isVertical ，finalSize)
+    public var imageLoadCompleteBlock :((Bool, CGSize) -> Void)?
     
     struct CKImageInformation {
         var url :URL?

                }
                
                if loadedCount == count {
                    self.collectionView?.reloadData()
                }
                else {

        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: CellIdentifier, for: indexPath)
        if let cell = cell as? CKPhotoBaseCollectionViewCell {
            let resource = ImageResource(downloadURL: imageUrls[indexPath.row])
            cell.ivImage.kf.setImage(with: resource, placeholder: nil, options: nil, progressBlock: nil, completionHandler: { (image, error, type, url) in
                if let image = image {
                    if self.isVertical {
                        if image.size.width > image.size.height {
                            let rotatedImage = UIImage(cgImage: image.cgImage!, scale: CGFloat(1.0), orientation: .right)
                            cell.ivImage.image = rotatedImage
                        }
                    }
                }
            })
            
        }
        return cell
    }
