         self.collectionView.delegate = self
         self.collectionView.showsHorizontalScrollIndicator = false
         self.collectionView.isPagingEnabled = true
-        self.collectionView.register(UICollectionViewCell.classForCoder(), forCellWithReuseIdentifier: identifi)
+        self.collectionView.register(PhotoCollectionCell.classForCoder(), forCellWithReuseIdentifier: identifi)
         self.addSubview(self.collectionView)
     }
     func createPageContrl() {


import UIKit

private let identifi = "UICollectionViewCell"

class BQPhotoBrowserView: UIView {

    //MARK: - ***** Ivars *****
    fileprivate var datas: [UIImageView]!
    fileprivate var pageControl: UIPageControl!
    private var collectionView:UICollectionView!
    private var index: Int = 0
    //MARK: - ***** Class Method *****
    
    class func show(datas:[UIImageView], current: Int = 0) {
        let browser = BQPhotoBrowserView(frame: UIScreen.main.bounds, datas: datas, current: current)
        UIApplication.shared.keyWindow?.addSubview(browser)
    }
    //MARK: - ***** initialize Method *****
    

    }
}

extension BQPhotoBrowserView: UICollectionViewDelegate, UICollectionViewDataSource, PhotoCellDelegate {
    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return self.datas.count
    }
    func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: identifi, for: indexPath) as! PhotoCollectionCell
        cell.delegate = self
        cell.row = indexPath.row
        cell.setImage(img: self.datas[indexPath.row].image)
        return cell
    }
    func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) {
        let photoCell = cell as! PhotoCollectionCell
        photoCell.photoView.zoomNormal()
    }
    func photoTapAction(row: Int) {
        self.removeSelf(row: row)
    }
}

