         
         //标题不为空，则添加标题
         if (self.title != nil && self.title != "")  {
-            let titlelabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: screenWidth, height: titleHeight))
+            let titlelabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: mmscreenWidth, height: mmtitleHeight))
             titlelabel.text = self.title
             titlelabel.textAlignment = .center
             titlelabel.textColor = UIColor.lightGray

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

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