         }
         return max(0, index)
     }
-    weak var timer: Timer?
+    private weak var timer: Timer?
     
     // MARK: - 初始化方法
     override init(frame: CGRect) {

    func cycleScrollView(_ cycleScrollView: MYCycleScrollView, didScrollTo index: Int)
}

public class MYCycleScrollView: UIView, UICollectionViewDataSource,UICollectionViewDelegate {

    // MARK: - Public Properties
    public var imageURLs = [String]() {

        collectionView.delegate = nil
        collectionView.dataSource = nil
    }
    override open func layoutSubviews() {
        super.layoutSubviews()
        
        flowLayout.itemSize = self.frame.size
