瀏覽代碼

添加提示框添加

jsonwang 3 年之前
父節點
當前提交
23d38ae890
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      BFCommonKit/Classes/BFBase/View/PQRemindView.swift

+ 8 - 1
BFCommonKit/Classes/BFBase/View/PQRemindView.swift

@@ -205,6 +205,7 @@ open class PQEmptyRemindView: UIView {
     // 是否没网提示
     public var isNetLost:Bool = false {
         didSet {
+            
             addData()
             addLayout()
         }
@@ -516,7 +517,7 @@ public class PQUploadRemindView: PQRemindView {
     ///   - confirmTitle: <#confirmTitle description#>
     ///   - remindHandle: <#remindHandle description#>
     /// - Returns: <#description#>
-    class public func showUploadRemindView(title: String?, attributedTitle: NSAttributedString? = nil, summary: String, canMoreOpration: Bool = false, confirmTitle: String?, cancelTitle: String? = nil, cancelColor: UIColor? = nil, remindHandle: @escaping (_ sender: UIButton, _ baseModel: PQBaseModel?) -> Void) {
+    class public func showUploadRemindView(title: String?, attributedTitle: NSAttributedString? = nil, summary: String, canMoreOpration: Bool = false, confirmTitle: String?, cancelTitle: String? = nil, cancelColor: UIColor? = nil,confirmColor: UIColor? = nil, remindHandle: @escaping (_ sender: UIButton, _ baseModel: PQBaseModel?) -> Void) {
         if UIApplication.shared.keyWindow?.viewWithTag(cUploadViewRemindTag) != nil {
             UIApplication.shared.keyWindow?.viewWithTag(cUploadViewRemindTag)?.removeFromSuperview()
         }
@@ -543,8 +544,14 @@ public class PQUploadRemindView: PQRemindView {
         remindView.remindBlock = { sender, baseModel in
             remindHandle(sender, baseModel)
         }
+
         remindView.tag = cUploadViewRemindTag
         UIApplication.shared.keyWindow?.addSubview(remindView)
         remindView.remindData = remindData
+        
+        if(confirmColor != nil){
+            remindView.confirmBtn.setTitleColor(confirmColor, for: .normal)
+        }
+      
     }
 }