美文网首页
swift 更改 UIAlertController.UIAle

swift 更改 UIAlertController.UIAle

作者: Enter_Y | 来源:发表于2019-05-27 18:50 被阅读0次
            let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
            let copyAction = UIAlertAction(title: "复制", style: .default, handler: { action in
                let pasteboard = UIPasteboard.general
                pasteboard.string = model.contents
            })
            copyAction.setValue(UIColor(hexString: "4a4a4a", alpha: 1), forKey: "_titleTextColor")
            alertController.addAction(copyAction)
            
            let destructiveAction = UIAlertAction(title: "回复", style: .default, handler: { [weak self] action in
                self?.selectSection = section
                self?.growingTextView.becomeFirstResponder()
            })
            destructiveAction.setValue(UIColor(hexString: "#4a4a4a", alpha: 1), forKey: "_titleTextColor")
            alertController.addAction(destructiveAction)
            present(alertController, animated: true, completion: nil)
    

    相关文章

      网友评论

          本文标题:swift 更改 UIAlertController.UIAle

          本文链接:https://www.haomeiwen.com/subject/earktctx.html