瀏覽代碼

修改alert字体颜色

胡志强 3 年之前
父節點
當前提交
b54870c031
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Introduce/Record/INRecorderController.swift

+ 5 - 2
Introduce/Record/INRecorderController.swift

@@ -349,10 +349,13 @@ class INRecorderController: BFBaseViewController {
     
     @objc func addwxAction(){
         let alertv = UIAlertController(title: "让我们成为微信好友", message: "我的微信号是:cjz_0216,无论你遇到什么问题,还是有功能建议,我都真诚的期待和你聊天。", preferredStyle: .alert)
-        alertv.addAction(UIAlertAction(title: "复制微信号", style: .default, handler: { action in
+        let sureAction = UIAlertAction(title: "复制微信号", style: .default, handler: { action in
             UIPasteboard.general.string = "cjz_0216"
             cShowHUB(superView: nil, msg: "已复制到剪切板")
-        }))
+        })
+        sureAction.setValue(UIColor.hexColor(hexadecimal:"0x389AFF"), forKey: "_titleTextColor")
+        alertv.addAction(sureAction)
+
         self.present(alertv, animated: true, completion: nil)
         
     }