             
             var tHeight:CGFloat = 0.0
             if (self.title != nil && self.title != "")   {
-                tHeight = titleHeight
+                tHeight = mmtitleHeight
             }
             
-            let origin_y = tHeight + buttonHeight * CGFloat(index) + divideLineHeight * CGFloat(index)
+            let origin_y = tHeight + mmbuttonHeight * CGFloat(index) + mmdivideLineHeight * CGFloat(index)
             
             let button = MMButton.init(type: .custom)
-            button.frame = CGRect.init(x: 0.0, y: origin_y, width: screenWidth, height: buttonHeight)
+            button.frame = CGRect.init(x: 0.0, y: origin_y, width: mmscreenWidth, height: mmbuttonHeight)
             if #available(iOS 8.2, *) {
                 button.titleLabel?.font = UIFont.systemFont(ofSize: 16)
             } else {

        UIView.animate(withDuration: self.duration!, animations: {
            self.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
            var tempFrame = self.actionSheetView.frame
            tempFrame.origin.y = screenHeight
            self.actionSheetView.frame = tempFrame
        }) { (finished:Bool) in
            self.removeFromSuperview()

    convenience init(title: String?, buttons: Array<Dictionary<String, String>>?, duration: Double?, cancel: Bool?) {
        
        //半透明背景
        self.init(frame: mmscreenBounds)
        self.title = title ?? ""
        self.buttons = buttons ?? []
        let btnCount = self.buttons?.count ?? 0
        self.duration = duration ?? (mmdefaultDuration + mmdefaultDuration * Double(btnCount/30))
        self.cancel = cancel ?? true
        //添加单击事件，隐藏sheet
        let singleTap = UITapGestureRecognizer.init(target: self, action: #selector(self.singleTapDismiss))
