 import UIKit
 
 //常量
-let divideLineHeight:CGFloat = 1                     /* 按钮与按钮之间的分割线高度 */
-let screenBounds = UIScreen.main.bounds              /* 屏幕Bounds */
-let screenSize   = screenBounds.size                 /* 屏幕大小 */
-let screenWidth  = screenSize.width                  /* 屏幕宽度 */
-let screenHeight = screenSize.height                 /* 屏幕高度 */
-let buttonHeight:CGFloat = 48.0 * screenWidth / 375  /* button高度 */
-let titleHeight:CGFloat = 40.0 * screenWidth / 375   /* 标题的高度 */
-let btnPadding:CGFloat = 5 * screenWidth / 375       /* 取消按钮与其他按钮之间的间距 */
-let defaultDuration = 0.3
+let mmdivideLineHeight:CGFloat = 1                       /* 按钮与按钮之间的分割线高度 */
+let mmscreenBounds = UIScreen.main.bounds                /* 屏幕Bounds */
+let mmscreenSize   = mmscreenBounds.size                 /* 屏幕大小 */
+let mmscreenWidth  = mmscreenSize.width                  /* 屏幕宽度 */
+let mmscreenHeight = mmscreenSize.height                 /* 屏幕高度 */
+let mmbuttonHeight:CGFloat = 48.0 * mmscreenWidth / 375  /* button高度 */
+let mmtitleHeight:CGFloat = 40.0 * mmscreenWidth / 375   /* 标题的高度 */
+let mmbtnPadding:CGFloat = 5 * mmscreenWidth / 375       /* 取消按钮与其他按钮之间的间距 */
+let mmdefaultDuration = 0.3
 
 
 typealias actionClickBlock = (String) ->()

        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()

            
            var tHeight:CGFloat = 0.0
            if (self.title != nil && self.title != "")   {
                tHeight = mmtitleHeight
            }
            
            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: mmscreenWidth, height: mmbuttonHeight)
            if #available(iOS 8.2, *) {
                button.titleLabel?.font = UIFont.systemFont(ofSize: 16)
            } else {
