Jelajahi Sumber

防止连续点击

jsonwang 3 tahun lalu
induk
melakukan
9573f6e68d
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      Introduce/Record/INRecorderController.swift

+ 2 - 1
Introduce/Record/INRecorderController.swift

@@ -37,6 +37,7 @@ class INRecorderController: BFBaseViewController {
         btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
         btn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
         btn.addTarget(self, action: #selector(cameraBtnAction), for: .touchUpInside)
+        btn.eventInterval = 0.5
 
         return btn
     }()
@@ -48,7 +49,7 @@ class INRecorderController: BFBaseViewController {
         btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
         btn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
         btn.addTarget(self, action: #selector(addVideo), for: .touchUpInside)
-        
+        btn.eventInterval = 0.5
         return btn
     }()