Pārlūkot izejas kodu

防止连续点击

jsonwang 3 gadi atpakaļ
vecāks
revīzija
9573f6e68d
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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
     }()