         self.scrollView.showsHorizontalScrollIndicator = false
         self.scrollView.showsVerticalScrollIndicator = false
         self.scrollView.translatesAutoresizingMaskIntoConstraints = false
-        
+
         self.curImageView.contentMode = UIViewContentMode.scaleAspectFit
         self.curImageView.clipsToBounds = true
         self.curImageView.translatesAutoresizingMaskIntoConstraints = false
         self.curImageView.isUserInteractionEnabled = true
         self.curImageView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(CedCircleView.imageViewClickAction)))
-        
+
         self.prevImageView.contentMode = UIViewContentMode.scaleAspectFit
         self.prevImageView.clipsToBounds = true
         self.prevImageView.translatesAutoresizingMaskIntoConstraints = false
-        
+
         self.nextImageView.contentMode = UIViewContentMode.scaleAspectFit
         self.nextImageView.clipsToBounds = true
         self.nextImageView.translatesAutoresizingMaskIntoConstraints = false
-        
+
         self.addSubview(self.scrollView)
         self.scrollView.addSubview(self.curImageView)
         self.scrollView.addSubview(self.prevImageView)
         self.scrollView.addSubview(self.nextImageView)
     }
-    
+
     func layoutMyViews() {
         guard self.scrollView.superview != nil && self.nextImageView.superview != nil && self.curImageView.superview != nil && self.prevImageView.superview != nil else {
             return

     *点击图片的代理方法
     */
    func clickCurrentImage(index: UInt)
    
    /// 加载图片的代理方法，如果返回了UIImage，会进行图片的缓存
    ///
    /// - Parameters:

        // 布局后把contentOffset设为中间
        self.scrollView.setContentOffset(CGPoint(x: self.frame.width, y: 0), animated: false)
    }

    public func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        // 如果用户手动拖动到了一个整数页的位置就不会发生滑动了所以需要判断手动调用滑动停止滑动方法
        if !decelerate {
            self.scrollViewDidEndDecelerating(scrollView)
        }
    }

    // 时间触发器设置滑动时动画true，会触发的方法
    public func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView) {
        self.scrollViewDidEndDecelerating(scrollView)
    }

    // MARK: - Public Methods
    public func scrollToNextImage(animate: Bool) {
        self.scrollView.setContentOffset(CGPoint(x: self.bounds.width * 2, y: 0), animated: animate)
    }

    public func scrollToPreviousImage(animate: Bool) {
        self.scrollView.setContentOffset(CGPoint(x: 0, y: 0), animated: animate)
    }

    public func reloadData() {
        self.imageCacheDict.removeAll()
        self.configViews()
