     
     deinit {
         scrollView.delegate = nil
-        
+        timer?.invalidate()
+        timer = nil
     }
     
     private func reloadData() {

    
    private var currentImageArray = [ImageType]()
    private var currentPage = 0
  
    private var timer:NSTimer?
    private lazy var scrollView:UIScrollView = {
        

    }
    override init (frame: CGRect) {
        super.init(frame: frame)
        
        addSubview(scrollView)
        addSubview(pageControl)
        
