         
     }
     
-    //MARK: - ActionView animation
-    private func setActionViewHidden(hidden:Bool){
-        
-        let activeButtonY = hidden ? CGRectGetHeight(view.bounds) - activeButtonPadding : CGRectGetHeight(view.bounds) - activeButtonPadding - activeButtonSize.height
-        
-        UIView.animateWithDuration(defaultAnimationDuration) { () -> Void in
-            self.activeButton?.frame = CGRect(origin: CGPoint(x: self.view.bounds.size.width - CGFloat(self.activeButtonPadding) - self.activeButtonSize.width, y: CGFloat(activeButtonY)), size: self.activeButtonSize)
-            self.activeButton?.alpha = CGFloat(NSNumber(bool: !hidden))
-        }
-    }
-    
     //MARK: - Func
     private func currentScollViewImage() -> UIImage?{
         if let currentScrollView = pageScrollView.subviews[currentPageIndex] as? UIScrollView {

                    let heightImageView = CGRectGetHeight(imageView.frame)
                    let contentOffsetY = scrollView.contentOffset.y
                    switch panGestureRecognizer.state {
                    case .Began:
                        if let _ = activeButton{
                            self.setActionViewHidden(true)
                        }
                    case .Changed:
                        //根据imageView移动的距离，设置透明
                        let yOffset = -panGestureRecognizer.translationInView(scrollView).y

    
    func handleZoomScrollViewTap(gestureRecognizer:UITapGestureRecognizer){
        
        self.dismissViewControllerAnimated(true, completion: nil)
        
    }

