                 UIView.animate(withDuration: kAnimDuration, animations: { 
                     self.contentView.gk_y = 0
                 }, completion: { (finished) in
-                    self.showBlock!()
+                    if self.showBlock != nil {
+                        self.showBlock!();
+                    }
                 })
             }else {
                 if showBlock != nil {
-                    
+                    self.showBlock!();
                 }
                 
                 contentView.gk_y = 0


public class GKCover: UIView, CAAnimationDelegate {

    var coverShow     : Bool = false
    var animated      : Bool = false
    var notclick      : Bool = false

        self.hideBlock      = hideBlock
    }
}


