         
         isAutoPlay = false
         
-        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (Int64)(NSEC_PER_SEC * 5)), dispatch_get_main_queue(), { () -> Void in
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (Int64)(NSEC_PER_SEC * UInt64(duration))), dispatch_get_main_queue(), { () -> Void in
             
             self.isAutoPlay = true
         })
         
         index = sender.currentPage
     }
+    
+    /**
+     * 左右滑动
+     */
+    func handleSwipes(sender: UISwipeGestureRecognizer) {
+        
+        isAutoPlay = false
+        
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (Int64)(NSEC_PER_SEC * UInt64(duration))), dispatch_get_main_queue(), { () -> Void in
+            
+            self.isAutoPlay = true
+        })
+        
+        if sender.direction == UISwipeGestureRecognizerDirection.Left {
+            
+            index -= 1
+        }
+        
+        if sender.direction == UISwipeGestureRecognizerDirection.Right {
+            
+            index += 1
+        }
+    }
 }

    private var pageControlConstraints = [NSLayoutConstraint]()
    private var timer : NSTimer!
    private var order : PlayOrder = .Asc
    
    // MARK: -
    

        }
    }
    
    private func setupSwipeGesture() {
        
        leftSwipeGestureRecognizer = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes:"))
        rightSwipeGestureRecognizer = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes:"))
        
        leftSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirection.Left
        rightSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirection.Right
        
        self.addGestureRecognizer(leftSwipeGestureRecognizer)
        self.addGestureRecognizer(rightSwipeGestureRecognizer)
    }
    
    // MARK: -
    
    /**
