             
             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 {

        let btnCount = buttons?.count ?? 0
        var tHeight:CGFloat = 0.0
        if (self.title != nil && self.title != "")   {
            tHeight = titleHeight
        }
        
        var cancelHeight:CGFloat = 0.0
        if self.cancel == true {
            cancelHeight = buttonHeight + btnPadding
        }
        
        actionSheetHeight = CGFloat(btnCount) * buttonHeight + tHeight + cancelHeight + CGFloat(btnCount) * divideLineHeight
        let aFrame:CGRect = CGRect.init(x: 0, y: screenHeight, width: screenWidth, height: actionSheetHeight)
        self.actionSheetView.frame = aFrame
        self.addSubview(self.actionSheetView)
    }

        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 = mmscreenHeight
            self.actionSheetView.frame = tempFrame
        }) { (finished:Bool) in
            self.removeFromSuperview()
