         }
         isTimerAuto = false
     }
-    
+
     func auto() {
         scrollView.setContentOffset(CGPoint(x: bounds.width * 2, y: 0), animated: true)
         isTimerAuto = true
         NSTimer.scheduledTimerWithTimeInterval(0.5, target: self, selector: #selector(scrollViewDidEndDecelerating(_:)), userInfo: nil, repeats: false)
     }
-    
+
     func tap() {
         if tapResponse != nil {
             tapResponse!(abs(currentIdx))
         }
     }
-    
+
     func imageView(frame: CGRect) -> UIImageView {
         let view = UIImageView(frame: frame)
         view.contentMode = .ScaleAspectFill

        pageControl.currentPageIndicatorTintColor = .whiteColor()
        addSubview(pageControl)
    }
    
    public func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
        if self.scrollView.contentOffset.x == 0 {
            currentIdx = ((currentIdx - 1) % (imageUrls?.count)!)

    var timer: NSTimer?
    var showadDescs = true
    var tapResponse: ResponseClouser?
    var placehoderImage: UIImage?



    public override init(frame: CGRect) {
        super.init(frame: frame)
        scrollView = UIScrollView(frame: bounds)
